Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: Goal: reduce overall function complexity
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 20 May 2025 17:11:25 +0200 (CEST)
On Wed, 14 May 2025, Dan Fandrich via curl-library wrote:
> If the current few known-bad offenders are added to a whitelist, it becomes
> easier to ratchet this number down over time.
Here's a first shot that sets the maximum allowed limit to 100, with two
functions whitelisted at the moment:
https://github.com/curl/curl/pull/17398
If you check out the CI job it lists all functions that are scored 80 or
higher and the list currently looks like this:
142 src/tool_getparam.c:getparameter [ALLOWED]
124 src/tool_operate.c:single_transfer [ALLOWED]
---- threshold: 100 ----
100 lib/setopt.c:setopt_long
100 lib/vssh/libssh.c:myssh_statemach_act
100 lib/mprintf.c:formatf
97 lib/url.c:url_match_conn
92 lib/vtls/openssl.c:Curl_ossl_ctx_init
92 lib/urlapi.c:curl_url_get
88 lib/http.c:http_header
83 lib/ftplistparser.c:parse_unix
Date: Tue, 20 May 2025 17:11:25 +0200 (CEST)
On Wed, 14 May 2025, Dan Fandrich via curl-library wrote:
> If the current few known-bad offenders are added to a whitelist, it becomes
> easier to ratchet this number down over time.
Here's a first shot that sets the maximum allowed limit to 100, with two
functions whitelisted at the moment:
https://github.com/curl/curl/pull/17398
If you check out the CI job it lists all functions that are scored 80 or
higher and the list currently looks like this:
142 src/tool_getparam.c:getparameter [ALLOWED]
124 src/tool_operate.c:single_transfer [ALLOWED]
---- threshold: 100 ----
100 lib/setopt.c:setopt_long
100 lib/vssh/libssh.c:myssh_statemach_act
100 lib/mprintf.c:formatf
97 lib/url.c:url_match_conn
92 lib/vtls/openssl.c:Curl_ossl_ctx_init
92 lib/urlapi.c:curl_url_get
88 lib/http.c:http_header
83 lib/ftplistparser.c:parse_unix
-- / daniel.haxx.se || https://rock-solid.curl.dev -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-05-20