Task #90750 - fixed.err
back to task #90750download
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/lib/altsvc.c:234:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, "r")'
curl-8.15.0/lib/altsvc.c:227:5: branch_false: following 'false' branch...
curl-8.15.0/lib/altsvc.c:230:8: branch_false: ...to here
curl-8.15.0/lib/altsvc.c:230:8: acquire_resource: opened here
curl-8.15.0/lib/altsvc.c:231:5: branch_true: following 'true' branch...
curl-8.15.0/lib/altsvc.c:233:5: branch_true: ...to here
curl-8.15.0/lib/altsvc.c:234:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/altsvc.c:234:11: danger: 'fopen(file, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 232| struct dynbuf buf;
# 233| curlx_dyn_init(&buf, MAX_ALTSVC_LINE);
# 234|-> while(Curl_get_line(&buf, fp)) {
# 235| const char *lineptr = curlx_dyn_ptr(&buf);
# 236| curlx_str_passblanks(&lineptr);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/lib/altsvc.c:234:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, "r")'
curl-8.15.0/lib/altsvc.c:227:5: branch_false: following 'false' branch...
curl-8.15.0/lib/altsvc.c:230:8: branch_false: ...to here
curl-8.15.0/lib/altsvc.c:230:8: acquire_memory: allocated here
curl-8.15.0/lib/altsvc.c:231:5: branch_true: following 'true' branch...
curl-8.15.0/lib/altsvc.c:233:5: branch_true: ...to here
curl-8.15.0/lib/altsvc.c:234:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/altsvc.c:234:11: danger: 'fopen(file, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 232| struct dynbuf buf;
# 233| curlx_dyn_init(&buf, MAX_ALTSVC_LINE);
# 234|-> while(Curl_get_line(&buf, fp)) {
# 235| const char *lineptr = curlx_dyn_ptr(&buf);
# 236| curlx_str_passblanks(&lineptr);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/lib/cookie.c:1214:13: warning[-Wanalyzer-file-leak]: leak of FILE 'handle'
curl-8.15.0/lib/cookie.c:1196:5: branch_true: following 'true' branch (when 'data' is non-NULL)...
curl-8.15.0/lib/cookie.c:1198:7: branch_true: ...to here
curl-8.15.0/lib/cookie.c:1198:7: branch_true: following 'true' branch...
curl-8.15.0/lib/cookie.c:1199:9: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/lib/cookie.c:1202:14: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1202:14: acquire_resource: opened here
curl-8.15.0/lib/cookie.c:1203:11: branch_false: following 'false' branch...
curl-8.15.0/lib/cookie.c:1210:5: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1214:13: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/cookie.c:1214:13: danger: 'handle' leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1212| struct dynbuf buf;
# 1213| curlx_dyn_init(&buf, MAX_COOKIE_LINE);
# 1214|-> while(Curl_get_line(&buf, fp)) {
# 1215| const char *lineptr = curlx_dyn_ptr(&buf);
# 1216| bool headerline = FALSE;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/lib/cookie.c:1214:13: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
curl-8.15.0/lib/cookie.c:1196:5: branch_true: following 'true' branch (when 'data' is non-NULL)...
curl-8.15.0/lib/cookie.c:1198:7: branch_true: ...to here
curl-8.15.0/lib/cookie.c:1198:7: branch_true: following 'true' branch...
curl-8.15.0/lib/cookie.c:1199:9: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/lib/cookie.c:1202:14: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1202:14: acquire_memory: allocated here
curl-8.15.0/lib/cookie.c:1203:11: branch_false: following 'false' branch...
curl-8.15.0/lib/cookie.c:1210:5: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1214:13: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/cookie.c:1214:13: danger: 'handle' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 1212| struct dynbuf buf;
# 1213| curlx_dyn_init(&buf, MAX_COOKIE_LINE);
# 1214|-> while(Curl_get_line(&buf, fp)) {
# 1215| const char *lineptr = curlx_dyn_ptr(&buf);
# 1216| bool headerline = FALSE;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:104:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 102| if(data->id >= 0) {
# 103| if(cid >= 0)
# 104|-> return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSDC, data->id, cid);
# 105| else
# 106| return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSD, data->id);
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:106:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 104| return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSDC, data->id, cid);
# 105| else
# 106|-> return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSD, data->id);
# 107| }
# 108| else if(cid >= 0)
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:109:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 107| }
# 108| else if(cid >= 0)
# 109|-> return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSC, cid);
# 110| else {
# 111| return msnprintf(buf, maxlen, "[x-x] ");
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:111:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 109| return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSC, cid);
# 110| else {
# 111|-> return msnprintf(buf, maxlen, "[x-x] ");
# 112| }
# 113| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:221:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 219| len += trc_print_ids(data, buf + len, TRC_LINE_MAX - len);
# 220| if(feat)
# 221|-> len += msnprintf(buf + len, TRC_LINE_MAX - len, "[%s] ", feat->name);
# 222| if(opt_id) {
# 223| if(opt_id_idx > 0)
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/curl_trc.c:229:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
# 227| len += msnprintf(buf + len, TRC_LINE_MAX - len, "[%s] ", opt_id);
# 228| }
# 229|-> len += mvsnprintf(buf + len, TRC_LINE_MAX - len, fmt, ap);
# 230| len = trc_end_buf(buf, len, TRC_LINE_MAX, TRUE);
# 231| trc_write(data, CURLINFO_TEXT, buf, len);
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/dict.c:147:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/dict.c:146:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/dict.c:147:7: throw: if 'curl_mvaprintf' throws an exception...
curl-8.15.0/lib/dict.c:147:7: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 145| va_list ap;
# 146| va_start(ap, fmt);
# 147|-> s = vaprintf(fmt, ap); /* returns an allocated string */
# 148| va_end(ap);
# 149| if(!s)
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:129:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 127| {
# 128| struct FormInfo *form_info;
# 129|-> form_info = calloc(1, sizeof(struct FormInfo));
# 130| if(!form_info)
# 131| return NULL;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:346:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 344| * We need to allocate the first struct to fill in.
# 345| */
# 346|-> first_form = calloc(1, sizeof(struct FormInfo));
# 347| if(!first_form)
# 348| return CURL_FORMADD_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:458:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 456| avalue = va_arg(params, char *);
# 457| if(avalue) {
# 458|-> curr->value = strdup(avalue);
# 459| if(!curr->value)
# 460| retval = CURL_FORMADD_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:479:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 477| if(curr->flags & HTTPPOST_FILENAME) {
# 478| if(avalue) {
# 479|-> char *fname = strdup(avalue);
# 480| if(!fname)
# 481| retval = CURL_FORMADD_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:485:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 483| form = AddFormInfo(fname, NULL, curr);
# 484| if(!form) {
# 485|-> free(fname);
# 486| retval = CURL_FORMADD_MEMORY;
# 487| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:503:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 501| else {
# 502| if(avalue) {
# 503|-> curr->value = strdup(avalue);
# 504| if(!curr->value)
# 505| retval = CURL_FORMADD_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/formdata.c:566:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
# 564| if(curr->flags & HTTPPOST_FILENAME) {
# 565| if(avalue) {
# 566|-> char *type = strdup(avalue);
# 567| if(!type)
# 568| retval = CURL_FORMADD_MEMORY;
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/headers.c: scope_hint: In function 'Curl_headers_push'
curl-8.15.0/lib/headers.c:291:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 291 | end = strchr(header, '\r');
# | ^
# 289| return CURLE_OK;
# 290|
# 291|-> end = strchr(header, '\r');
# 292| if(!end) {
# 293| end = strchr(header, '\n');
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/headers.c:291:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 289| return CURLE_OK;
# 290|
# 291|-> end = strchr(header, '\r');
# 292| if(!end) {
# 293| end = strchr(header, '\n');
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/headers.c:293:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 293 | end = strchr(header, '\n');
# | ^
# 291| end = strchr(header, '\r');
# 292| if(!end) {
# 293|-> end = strchr(header, '\n');
# 294| if(!end)
# 295| /* neither CR nor LF as terminator is not a valid header */
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/headers.c:293:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 291| end = strchr(header, '\r');
# 292| if(!end) {
# 293|-> end = strchr(header, '\n');
# 294| if(!end)
# 295| /* neither CR nor LF as terminator is not a valid header */
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/lib/hsts.c:529:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, "r")'
curl-8.15.0/lib/hsts.c:522:5: branch_false: following 'false' branch...
curl-8.15.0/lib/hsts.c:525:8: branch_false: ...to here
curl-8.15.0/lib/hsts.c:525:8: acquire_resource: opened here
curl-8.15.0/lib/hsts.c:526:5: branch_true: following 'true' branch...
curl-8.15.0/lib/hsts.c:528:5: branch_true: ...to here
curl-8.15.0/lib/hsts.c:529:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/hsts.c:529:11: danger: 'fopen(file, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 527| struct dynbuf buf;
# 528| curlx_dyn_init(&buf, MAX_HSTS_LINE);
# 529|-> while(Curl_get_line(&buf, fp)) {
# 530| const char *lineptr = curlx_dyn_ptr(&buf);
# 531| curlx_str_passblanks(&lineptr);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/lib/hsts.c:529:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, "r")'
curl-8.15.0/lib/hsts.c:522:5: branch_false: following 'false' branch...
curl-8.15.0/lib/hsts.c:525:8: branch_false: ...to here
curl-8.15.0/lib/hsts.c:525:8: acquire_memory: allocated here
curl-8.15.0/lib/hsts.c:526:5: branch_true: following 'true' branch...
curl-8.15.0/lib/hsts.c:528:5: branch_true: ...to here
curl-8.15.0/lib/hsts.c:529:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/hsts.c:529:11: danger: 'fopen(file, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 527| struct dynbuf buf;
# 528| curlx_dyn_init(&buf, MAX_HSTS_LINE);
# 529|-> while(Curl_get_line(&buf, fp)) {
# 530| const char *lineptr = curlx_dyn_ptr(&buf);
# 531| curlx_str_passblanks(&lineptr);
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/http.c: scope_hint: In function 'http_target'
curl-8.15.0/lib/http.c:2040:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2040 | char *type = strstr(path, ";type=");
# | ^~~~~~
# 2038| if(data->set.proxy_transfer_mode) {
# 2039| /* when doing ftp, append ;type=<a|i> if not present */
# 2040|-> char *type = strstr(path, ";type=");
# 2041| if(type && type[6] && type[7] == 0) {
# 2042| switch(Curl_raw_toupper(type[6])) {
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/http.c:2040:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2038| if(data->set.proxy_transfer_mode) {
# 2039| /* when doing ftp, append ;type=<a|i> if not present */
# 2040|-> char *type = strstr(path, ";type=");
# 2041| if(type && type[6] && type[7] == 0) {
# 2042| switch(Curl_raw_toupper(type[6])) {
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/krb5.c:462:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/krb5.c:461:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/krb5.c:462:3: throw: if 'curl_mvsnprintf' throws an exception...
curl-8.15.0/lib/krb5.c:462:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 460|
# 461| va_start(args, message);
# 462|-> mvsnprintf(print_buffer, sizeof(print_buffer), message, args);
# 463| va_end(args);
# 464|
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/lib/netrc.c:85:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
curl-8.15.0/lib/netrc.c:109:18: enter_function: entry to 'parsenetrc'
curl-8.15.0/lib/netrc.c:131:5: branch_true: following 'true' branch...
curl-8.15.0/lib/netrc.c:132:21: branch_true: ...to here
curl-8.15.0/lib/netrc.c:132:21: call_function: calling 'file2memory' from 'parsenetrc'
# 83| if(file) {
# 84| ret = NETRC_OK;
# 85|-> while(Curl_get_line(&linebuf, file)) {
# 86| CURLcode result;
# 87| const char *line = curlx_dyn_ptr(&linebuf);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/lib/netrc.c:85:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
curl-8.15.0/lib/netrc.c:109:18: enter_function: entry to 'parsenetrc'
curl-8.15.0/lib/netrc.c:131:5: branch_true: following 'true' branch...
curl-8.15.0/lib/netrc.c:132:21: branch_true: ...to here
curl-8.15.0/lib/netrc.c:132:21: call_function: calling 'file2memory' from 'parsenetrc'
# 83| if(file) {
# 84| ret = NETRC_OK;
# 85|-> while(Curl_get_line(&linebuf, file)) {
# 86| CURLcode result;
# 87| const char *line = curlx_dyn_ptr(&linebuf);
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/noproxy.c: scope_hint: In function 'Curl_check_noproxy'
curl-8.15.0/lib/noproxy.c:151:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 151 | endptr = strchr(name, ']');
# | ^
# 149| char *endptr;
# 150| /* IPv6 numerical address */
# 151|-> endptr = strchr(name, ']');
# 152| if(!endptr)
# 153| return FALSE;
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/noproxy.c:151:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 149| char *endptr;
# 150| /* IPv6 numerical address */
# 151|-> endptr = strchr(name, ']');
# 152| if(!endptr)
# 153| return FALSE;
Error: CPPCHECK_WARNING (CWE-457):
curl-8.15.0/lib/request.c:313: error[uninitvar]: Uninitialized variable: &tmp
# 311| char tmp;
# 312| size_t nwritten;
# 313|-> result = xfer_send(data, &tmp, 0, 0, &nwritten);
# 314| if(result)
# 315| return result;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/setopt.c:456:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 454| break;
# 455| case CURLOPT_CA_CACHE_TIMEOUT:
# 456|-> if(Curl_ssl_supports(data, SSLSUPP_CA_CACHE)) {
# 457| if(arg < -1)
# 458| return CURLE_BAD_FUNCTION_ARGUMENT;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/setopt.c:644:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 642| data->set.postfields == data->set.str[STRING_COPYPOSTFIELDS]) {
# 643| /* Previous CURLOPT_COPYPOSTFIELDS is no longer valid. */
# 644|-> Curl_safefree(data->set.str[STRING_COPYPOSTFIELDS]);
# 645| data->set.postfields = NULL;
# 646| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/setopt.c:1006:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 1004| if((arg < 0) || (arg > 65535))
# 1005| return CURLE_BAD_FUNCTION_ARGUMENT;
# 1006|-> data->set.localport = curlx_sltous(arg);
# 1007| break;
# 1008| case CURLOPT_LOCALPORTRANGE:
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/setopt.c:1014:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 1012| if((arg < 0) || (arg > 65535))
# 1013| return CURLE_BAD_FUNCTION_ARGUMENT;
# 1014|-> data->set.localportrange = curlx_sltous(arg);
# 1015| break;
# 1016| #endif
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:101:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:100:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:101:26: branch_true: ...to here
curl-8.15.0/lib/share.c:101:26: throw: if 'Curl_cookie_init' throws an exception...
curl-8.15.0/lib/share.c:101:26: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 99| #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
# 100| if(!share->cookies) {
# 101|-> share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE);
# 102| if(!share->cookies)
# 103| res = CURLSHE_NOMEM;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:113:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:112:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:113:23: branch_true: ...to here
curl-8.15.0/lib/share.c:113:23: throw: if 'Curl_hsts_init' throws an exception...
curl-8.15.0/lib/share.c:113:23: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 111| #ifndef CURL_DISABLE_HSTS
# 112| if(!share->hsts) {
# 113|-> share->hsts = Curl_hsts_init();
# 114| if(!share->hsts)
# 115| res = CURLSHE_NOMEM;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:130:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:124:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:130:12: branch_true: ...to here
curl-8.15.0/lib/share.c:130:12: throw: if 'Curl_ssl_scache_create' throws an exception...
curl-8.15.0/lib/share.c:130:12: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 128| * scache is not optimized for several hundreds of peers. So,
# 129| * keep it at a reasonable level. */
# 130|-> if(Curl_ssl_scache_create(25, 2, &share->ssl_scache))
# 131| res = CURLSHE_NOMEM;
# 132| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:141:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:140:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:141:9: branch_true: ...to here
curl-8.15.0/lib/share.c:141:9: throw: if 'Curl_cpool_init' throws an exception...
curl-8.15.0/lib/share.c:141:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 139| /* It is safe to set this option several times on a share. */
# 140| if(!share->cpool.initialised) {
# 141|-> Curl_cpool_init(&share->cpool, share->admin, share, 103);
# 142| }
# 143| break;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:169:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:168:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:169:9: branch_true: ...to here
curl-8.15.0/lib/share.c:169:9: throw: if 'Curl_cookie_cleanup' throws an exception...
curl-8.15.0/lib/share.c:169:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
# 167| #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
# 168| if(share->cookies) {
# 169|-> Curl_cookie_cleanup(share->cookies);
# 170| share->cookies = NULL;
# 171| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:180:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:179:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:180:9: branch_true: ...to here
curl-8.15.0/lib/share.c:180:9: throw: if 'Curl_hsts_cleanup' throws an exception...
curl-8.15.0/lib/share.c:180:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
# 178| #ifndef CURL_DISABLE_HSTS
# 179| if(share->hsts) {
# 180|-> Curl_hsts_cleanup(&share->hsts);
# 181| }
# 182| #else /* CURL_DISABLE_HSTS */
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/lib/share.c:190:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:189:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:190:9: branch_true: ...to here
curl-8.15.0/lib/share.c:190:9: throw: if 'Curl_ssl_scache_destroy' throws an exception...
curl-8.15.0/lib/share.c:190:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 188| #ifdef USE_SSL
# 189| if(share->ssl_scache) {
# 190|-> Curl_ssl_scache_destroy(share->ssl_scache);
# 191| share->ssl_scache = NULL;
# 192| }
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/vauth/digest.c: scope_hint: In function 'auth_digest_get_key_value'
curl-8.15.0/lib/vauth/digest.c:206:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 206 | find_pos = strstr(chlg, key);
# | ^
# 204| size_t i;
# 205|
# 206|-> find_pos = strstr(chlg, key);
# 207| if(!find_pos)
# 208| return FALSE;
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/lib/vauth/digest.c:206:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 204| size_t i;
# 205|
# 206|-> find_pos = strstr(chlg, key);
# 207| if(!find_pos)
# 208| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-file-leak]: leak of FILE '*global.trace_stream'
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_resource: opened here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: '*global.trace_stream' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 126| global->trace_stream = tool_stderr;
# 127| else {
# 128|-> global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
# 129| global->trace_fopened = TRUE;
# 130| }
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘*global.trace_stream’
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_resource: opened here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: ‘*global.trace_stream’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 126| global->trace_stream = tool_stderr;
# 127| else {
# 128|-> global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
# 129| global->trace_fopened = TRUE;
# 130| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-malloc-leak]: leak of '*global.trace_stream'
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: '*global.trace_stream' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 126| global->trace_stream = tool_stderr;
# 127| else {
# 128|-> global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
# 129| global->trace_fopened = TRUE;
# 130| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*global.trace_stream’
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: ‘*global.trace_stream’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 126| global->trace_stream = tool_stderr;
# 127| else {
# 128|-> global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
# 129| global->trace_fopened = TRUE;
# 130| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:449:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:6: throw: if 'curl_easy_getinfo' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:449:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 447|
# 448| /* The original URL to use as a base for a relative redirect URL */
# 449|-> if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
# 450| goto locout;
# 451| if(curl_url_set(u, CURLUPART_URL, locurl, 0))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:449:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:6: throw: if ‘curl_easy_getinfo’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:449:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 447|
# 448| /* The original URL to use as a base for a relative redirect URL */
# 449|-> if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
# 450| goto locout;
# 451| if(curl_url_set(u, CURLUPART_URL, locurl, 0))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:451:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:451:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 449| if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
# 450| goto locout;
# 451|-> if(curl_url_set(u, CURLUPART_URL, locurl, 0))
# 452| goto locout;
# 453|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:451:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:451:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 449| if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
# 450| goto locout;
# 451|-> if(curl_url_set(u, CURLUPART_URL, locurl, 0))
# 452| goto locout;
# 453|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:455:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:455:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 453|
# 454| /* Redirected location. This can be either absolute or relative. */
# 455|-> if(curl_url_set(u, CURLUPART_URL, copyloc, 0))
# 456| goto locout;
# 457|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:455:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:455:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 453|
# 454| /* Redirected location. This can be either absolute or relative. */
# 455|-> if(curl_url_set(u, CURLUPART_URL, copyloc, 0))
# 456| goto locout;
# 457|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:458:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:458:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 456| goto locout;
# 457|
# 458|-> if(curl_url_get(u, CURLUPART_URL, &finalurl, CURLU_NO_DEFAULT_PORT))
# 459| goto locout;
# 460|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:458:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:458:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 456| goto locout;
# 457|
# 458|-> if(curl_url_get(u, CURLUPART_URL, &finalurl, CURLU_NO_DEFAULT_PORT))
# 459| goto locout;
# 460|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:461:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:461:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 459| goto locout;
# 460|
# 461|-> if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0))
# 462| goto locout;
# 463|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:461:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:461:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 459| goto locout;
# 460|
# 461|-> if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0))
# 462| goto locout;
# 463|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:468:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:464:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:468:5: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:468:5: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 466| !strcmp("ftp", scheme) ||
# 467| !strcmp("ftps", scheme)) {
# 468|-> fprintf(stream, "%.*s" LINK "%s" LINKST "%.*s" LINKOFF,
# 469| space_skipped, location,
# 470| finalurl,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:468:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:464:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:468:5: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:468:5: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 466| !strcmp("ftp", scheme) ||
# 467| !strcmp("ftps", scheme)) {
# 468|-> fprintf(stream, "%.*s" LINK "%s" LINKST "%.*s" LINKOFF,
# 469| space_skipped, location,
# 470| finalurl,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
# 481| locdone:
# 482| if(u) {
# 483|-> curl_free(finalurl);
# 484| curl_free(scheme);
# 485| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
# 481| locdone:
# 482| if(u) {
# 483|-> curl_free(finalurl);
# 484| curl_free(scheme);
# 485| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:484:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
# 482| if(u) {
# 483| curl_free(finalurl);
# 484|-> curl_free(scheme);
# 485| curl_url_cleanup(u);
# 486| free(copyloc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:484:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
# 482| if(u) {
# 483| curl_free(finalurl);
# 484|-> curl_free(scheme);
# 485| curl_url_cleanup(u);
# 486| free(copyloc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:485:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
# 483| curl_free(finalurl);
# 484| curl_free(scheme);
# 485|-> curl_url_cleanup(u);
# 486| free(copyloc);
# 487| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_hdr.c:485:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
# 483| curl_free(finalurl);
# 484| curl_free(scheme);
# 485|-> curl_url_cleanup(u);
# 486| free(copyloc);
# 487| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_wrt.c:91:9: warning[-Wanalyzer-malloc-leak]: leak of 'newname'
curl-8.15.0/src/tool_cb_wrt.c:56:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_wrt.c:56:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:69:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_wrt.c:79:17: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_wrt.c:80:9: branch_false: following 'false' branch (when 'newname' is non-NULL)...
curl-8.15.0/src/tool_cb_wrt.c:84:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch (when 'fd == -1')...
curl-8.15.0/src/tool_cb_wrt.c:88:14: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch (when 'next_num != 100')...
curl-8.15.0/src/tool_cb_wrt.c:91:33: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:91:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_cb_wrt.c:91:9: danger: 'newname' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 89| /* because we keep having files that already exist */
# 90| next_num < 100 /* and we have not reached the retry limit */ ) {
# 91|-> msnprintf(newname + len + 1, 12, "%d", next_num);
# 92| next_num++;
# 93| do {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_cb_wrt.c:91:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newname’
curl-8.15.0/src/tool_cb_wrt.c:56:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_wrt.c:56:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:69:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_wrt.c:79:17: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_wrt.c:80:9: branch_false: following ‘false’ branch (when ‘newname’ is non-NULL)...
curl-8.15.0/src/tool_cb_wrt.c:84:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch (when ‘fd == -1’)...
curl-8.15.0/src/tool_cb_wrt.c:88:14: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch (when ‘next_num != 100’)...
curl-8.15.0/src/tool_cb_wrt.c:91:33: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:91:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_cb_wrt.c:91:9: danger: ‘newname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 89| /* because we keep having files that already exist */
# 90| next_num < 100 /* and we have not reached the retry limit */ ) {
# 91|-> msnprintf(newname + len + 1, 12, "%d", next_num);
# 92| next_num++;
# 93| do {
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_easysrc.c:112:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_easysrc.c:111:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_easysrc.c:112:10: throw: if 'curl_mvaprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:112:10: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 110| va_list ap;
# 111| va_start(ap, fmt);
# 112|-> bufp = vaprintf(fmt, ap);
# 113| va_end(ap);
# 114| if(!bufp) {
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_easysrc.c:112:10: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_easysrc.c:111:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_easysrc.c:112:10: throw: if ‘curl_mvaprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:112:10: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 110| va_list ap;
# 111| va_start(ap, fmt);
# 112|-> bufp = vaprintf(fmt, ap);
# 113| va_end(ap);
# 114| if(!bufp) {
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-file-leak]: leak of FILE 'out'
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following 'true' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_resource: opened here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following 'false' branch (when 'out' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following 'true' branch (when 'c' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: 'out' leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 191|
# 192| for(i = 0; ((c = srchead[i]) != NULL); i++)
# 193|-> fprintf(out, "%s\n", c);
# 194|
# 195| /* Declare variables used for complex setopt values */
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following ‘true’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_resource: opened here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: ‘out’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 191|
# 192| for(i = 0; ((c = srchead[i]) != NULL); i++)
# 193|-> fprintf(out, "%s\n", c);
# 194|
# 195| /* Declare variables used for complex setopt values */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-malloc-leak]: leak of 'out'
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following 'true' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_memory: allocated here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following 'false' branch (when 'out' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following 'true' branch (when 'c' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: 'out' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 191|
# 192| for(i = 0; ((c = srchead[i]) != NULL); i++)
# 193|-> fprintf(out, "%s\n", c);
# 194|
# 195| /* Declare variables used for complex setopt values */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following ‘true’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_memory: allocated here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: ‘out’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 191|
# 192| for(i = 0; ((c = srchead[i]) != NULL); i++)
# 193|-> fprintf(out, "%s\n", c);
# 194|
# 195| /* Declare variables used for complex setopt values */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_formparse.c:787:9: warning[-Wanalyzer-malloc-leak]: leak of 'contents'
curl-8.15.0/src/tool_formparse.c:758:14: acquire_memory: allocated here
curl-8.15.0/src/tool_formparse.c:759:5: branch_false: following 'false' branch (when 'contents' is non-NULL)...
curl-8.15.0/src/tool_formparse.c:763:11: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:764:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:766:7: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:766:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_formparse.c:768:6: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:784:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:784:13: branch_false: following 'false' branch (when 'literal_value == 0')...
curl-8.15.0/src/tool_formparse.c:786:10: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:786:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:787:9: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:787:9: throw: if 'warnf' throws an exception...
curl-8.15.0/src/tool_formparse.c:787:9: danger: 'contents' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 785| /* Ending a multipart. */
# 786| if(*mimecurrent == *mimeroot) {
# 787|-> warnf(config->global, "no multipart to terminate");
# 788| goto fail;
# 789| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_formparse.c:787:9: warning[-Wanalyzer-malloc-leak]: leak of ‘contents’
curl-8.15.0/src/tool_formparse.c:758:14: acquire_memory: allocated here
curl-8.15.0/src/tool_formparse.c:759:5: branch_false: following ‘false’ branch (when ‘contents’ is non-NULL)...
curl-8.15.0/src/tool_formparse.c:763:11: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:764:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:766:7: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:766:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_formparse.c:768:6: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:784:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:784:13: branch_false: following ‘false’ branch (when ‘literal_value == 0’)...
curl-8.15.0/src/tool_formparse.c:786:10: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:786:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:787:9: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:787:9: throw: if ‘warnf’ throws an exception...
curl-8.15.0/src/tool_formparse.c:787:9: danger: ‘contents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 785| /* Ending a multipart. */
# 786| if(*mimecurrent == *mimeroot) {
# 787|-> warnf(config->global, "no multipart to terminate");
# 788| goto fail;
# 789| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.altsvc'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.aws_sigv4'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.capath'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cipher13_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cipher_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cookiejar'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.crlfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.customrequest'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_interface'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_ipv4_addr'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_ipv6_addr'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_servers'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.doh_url'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech_config'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech_public'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.engine'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.etag_compare_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.etag_save_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftp_account'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftp_alternative_to_user'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftpport'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.haproxy_clientip'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.headerfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hostpubmd5'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hostpubsha256'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hsts'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.iface'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ipfs_gateway'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.krblevel'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.login_options'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.mail_auth'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.mail_from'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.netrc_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.noproxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.oauth_bearer'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.output_dir'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.pinnedpubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.preproxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proto_default'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cacert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_capath'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cipher13_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cipher_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_crlfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_pinnedpubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_service_name'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_authtype'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_password'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_username'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxyuserpwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.pubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.range'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.request_target'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.sasl_authzid'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.service_name'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ssl_ec_curves'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ssl_signature_algorithms'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_authtype'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_password'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_username'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.unix_socket_path'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.useragent'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.userpwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.writeout'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.altsvc’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.aws_sigv4’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.capath’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cipher13_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cipher_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cookiejar’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.crlfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.customrequest’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_interface’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_ipv4_addr’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_ipv6_addr’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_servers’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.doh_url’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech_config’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech_public’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.engine’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.etag_compare_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.etag_save_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftp_account’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftp_alternative_to_user’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftpport’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.haproxy_clientip’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.headerfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hostpubmd5’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hostpubsha256’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hsts’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.iface’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ipfs_gateway’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.krblevel’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.login_options’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.mail_auth’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.mail_from’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.netrc_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.noproxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.oauth_bearer’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.output_dir’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.pinnedpubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.preproxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proto_default’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cacert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_capath’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cipher13_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cipher_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_crlfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_pinnedpubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_service_name’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_authtype’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_password’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_username’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxyuserpwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.pubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.range’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.request_target’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.sasl_authzid’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.service_name’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ssl_ec_curves’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ssl_signature_algorithms’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_authtype’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_password’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_username’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.unix_socket_path’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.useragent’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.userpwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.writeout’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 59|
# 60| return PARAM_OK;
# 61|-> }
# 62|
# 63| static ParameterError getstrn(char **str, const char *val,
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 516| *password = passphrase;
# 517| }
# 518|-> }
# 519|
# 520| /* Get a size parameter for '--limit-rate' or '--max-filesize'.
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:874:10: warning[-Wanalyzer-malloc-leak]: leak of 'query'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 872| config->query = query;
# 873| }
# 874|-> return err;
# 875| }
# 876|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:874:10: warning[-Wanalyzer-malloc-leak]: leak of ‘query’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 872| config->query = query;
# 873| }
# 874|-> return err;
# 875| }
# 876|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:1406:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.range'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 1404| free(config->range);
# 1405| config->range = strdup(buffer);
# 1406|-> if(!config->range)
# 1407| err = PARAM_NO_MEM;
# 1408| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_getparam.c:1406:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.range’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 1404| free(config->range);
# 1405| config->range = strdup(buffer);
# 1406|-> if(!config->range)
# 1407| err = PARAM_NO_MEM;
# 1408| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:40:7: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
# 38| if(((*input)[len - 1] != '/')) {
# 39| struct dynbuf dyn;
# 40|-> curlx_dyn_init(&dyn, len + 2);
# 41|
# 42| if(curlx_dyn_addn(&dyn, *input, len)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:40:7: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
# 38| if(((*input)[len - 1] != '/')) {
# 39| struct dynbuf dyn;
# 40|-> curlx_dyn_init(&dyn, len + 2);
# 41|
# 42| if(curlx_dyn_addn(&dyn, *input, len)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:42:10: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
# 40| curlx_dyn_init(&dyn, len + 2);
# 41|
# 42|-> if(curlx_dyn_addn(&dyn, *input, len)) {
# 43| tool_safefree(*input);
# 44| return CURLE_OUT_OF_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:42:10: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
# 40| curlx_dyn_init(&dyn, len + 2);
# 41|
# 42|-> if(curlx_dyn_addn(&dyn, *input, len)) {
# 43| tool_safefree(*input);
# 44| return CURLE_OUT_OF_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
# 47| tool_safefree(*input);
# 48|
# 49|-> if(curlx_dyn_addn(&dyn, "/", 1))
# 50| return CURLE_OUT_OF_MEMORY;
# 51|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
# 47| tool_safefree(*input);
# 48|
# 49|-> if(curlx_dyn_addn(&dyn, "/", 1))
# 50| return CURLE_OUT_OF_MEMORY;
# 51|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:52:16: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
# 50| return CURLE_OUT_OF_MEMORY;
# 51|
# 52|-> *input = curlx_dyn_ptr(&dyn);
# 53| }
# 54| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:52:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
# 50| return CURLE_OUT_OF_MEMORY;
# 51|
# 52|-> *input = curlx_dyn_ptr(&dyn);
# 53| }
# 54| }
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if 'curlx_dyn_init' throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 95| int c;
# 96| struct dynbuf dyn;
# 97|-> curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if ‘curlx_dyn_init’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 95| int c;
# 96| struct dynbuf dyn;
# 97|-> curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if 'curlx_dyn_init' throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 95| int c;
# 96| struct dynbuf dyn;
# 97|-> curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if ‘curlx_dyn_init’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 95| int c;
# 96| struct dynbuf dyn;
# 97|-> curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
# 100|-> while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
# 101| char c_char = (char)c;
# 102| if(curlx_dyn_addn(&dyn, &c_char, 1))
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
# 100|-> while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
# 101| char c_char = (char)c;
# 102| if(curlx_dyn_addn(&dyn, &c_char, 1))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
# 100|-> while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
# 101| char c_char = (char)c;
# 102| if(curlx_dyn_addn(&dyn, &c_char, 1))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 98|
# 99| /* get the first line of the gateway file, ignore the rest */
# 100|-> while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
# 101| char c_char = (char)c;
# 102| if(curlx_dyn_addn(&dyn, &c_char, 1))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:199:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:199:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
# 197|
# 198| /* check for unsupported gateway parts */
# 199|-> if(curl_url_get(gatewayurl, CURLUPART_QUERY, &gwquery, 0)
# 200| != CURLUE_NO_QUERY) {
# 201| result = CURLE_URL_MALFORMAT;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:199:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:199:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
# 197|
# 198| /* check for unsupported gateway parts */
# 199|-> if(curl_url_get(gatewayurl, CURLUPART_QUERY, &gwquery, 0)
# 200| != CURLUE_NO_QUERY) {
# 201| result = CURLE_URL_MALFORMAT;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:206:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:206:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
# 204|
# 205| /* get gateway parts */
# 206|-> if(curl_url_get(gatewayurl, CURLUPART_HOST,
# 207| &gwhost, CURLU_URLDECODE)) {
# 208| goto clean;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:206:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:206:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
# 204|
# 205| /* get gateway parts */
# 206|-> if(curl_url_get(gatewayurl, CURLUPART_HOST,
# 207| &gwhost, CURLU_URLDECODE)) {
# 208| goto clean;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:211:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:211:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
# 209| }
# 210|
# 211|-> if(curl_url_get(gatewayurl, CURLUPART_SCHEME,
# 212| &gwscheme, CURLU_URLDECODE)) {
# 213| goto clean;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:211:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:211:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
# 209| }
# 210|
# 211|-> if(curl_url_get(gatewayurl, CURLUPART_SCHEME,
# 212| &gwscheme, CURLU_URLDECODE)) {
# 213| goto clean;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:216:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:216:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:216:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
# 214| }
# 215|
# 216|-> curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
# 217| curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
# 218|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:216:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:216:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:216:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
# 214| }
# 215|
# 216|-> curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
# 217| curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
# 218|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:217:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:217:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:217:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
# 215|
# 216| curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
# 217|-> curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
# 218|
# 219| /* get the path from user input */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:217:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:217:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:217:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
# 215|
# 216| curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
# 217|-> curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
# 218|
# 219| /* get the path from user input */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:220:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:220:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:220:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/16)
# 218|
# 219| /* get the path from user input */
# 220|-> curl_url_get(uh, CURLUPART_PATH, &inputpath, CURLU_URLDECODE);
# 221| /* inputpath might be NULL or a valid pointer now */
# 222|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:220:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:220:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:220:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/16)
# 218|
# 219| /* get the path from user input */
# 220|-> curl_url_get(uh, CURLUPART_PATH, &inputpath, CURLU_URLDECODE);
# 221| /* inputpath might be NULL or a valid pointer now */
# 222|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:236:16: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:236:16: throw: if 'curl_maprintf' throws an exception...
curl-8.15.0/src/tool_ipfs.c:236:16: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/16)
# 234| ensure_trailing_slash(&gwpath);
# 235|
# 236|-> pathbuffer = aprintf("%s%s/%s%s", gwpath, protocol, cid,
# 237| inputpath ? inputpath : "");
# 238| if(!pathbuffer) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:236:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:236:16: throw: if ‘curl_maprintf’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:236:16: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/16)
# 234| ensure_trailing_slash(&gwpath);
# 235|
# 236|-> pathbuffer = aprintf("%s%s/%s%s", gwpath, protocol, cid,
# 237| inputpath ? inputpath : "");
# 238| if(!pathbuffer) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:242:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:238:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:242:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:242:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_ipfs.c:242:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
# 240| }
# 241|
# 242|-> if(curl_url_set(uh, CURLUPART_PATH, pathbuffer, CURLU_URLENCODE)) {
# 243| goto clean;
# 244| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ipfs.c:242:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:238:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:242:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:242:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:242:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
# 240| }
# 241|
# 242|-> if(curl_url_set(uh, CURLUPART_PATH, pathbuffer, CURLU_URLENCODE)) {
# 243| goto clean;
# 244| }
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:47:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to 'warnf'
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling 'voutf' from 'warnf'
# 45| va_list ap)
# 46| {
# 47|-> size_t width = (get_terminal_columns() - strlen(prefix));
# 48| DEBUGASSERT(!strchr(fmt, '\n'));
# 49| if(!global->silent) {
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:47:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to ‘warnf’
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling ‘voutf’ from ‘warnf’
# 45| va_list ap)
# 46| {
# 47|-> size_t width = (get_terminal_columns() - strlen(prefix));
# 48| DEBUGASSERT(!strchr(fmt, '\n'));
# 49| if(!global->silent) {
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:54:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to 'warnf'
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling 'voutf' from 'warnf'
# 52| char *print_buffer;
# 53|
# 54|-> print_buffer = vaprintf(fmt, ap);
# 55| if(!print_buffer)
# 56| return;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:54:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to ‘warnf’
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling ‘voutf’ from ‘warnf’
# 52| char *print_buffer;
# 53|
# 54|-> print_buffer = vaprintf(fmt, ap);
# 55| if(!print_buffer)
# 56| return;
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:125:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:120:5: branch_true: following 'true' branch (when 'fmt' is non-NULL)...
curl-8.15.0/src/tool_msgs.c:122:5: branch_true: ...to here
curl-8.15.0/src/tool_msgs.c:122:5: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:125:5: throw: if 'curl_mvfprintf' throws an exception...
curl-8.15.0/src/tool_msgs.c:125:5: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 123| DEBUGASSERT(!strchr(fmt, '\n'));
# 124| fputs("curl: ", errors); /* prefix it */
# 125|-> vfprintf(errors, fmt, ap);
# 126| va_end(ap);
# 127| fputs("\n", errors); /* newline it */
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_msgs.c:125:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:120:5: branch_true: following ‘true’ branch (when ‘fmt’ is non-NULL)...
curl-8.15.0/src/tool_msgs.c:122:5: branch_true: ...to here
curl-8.15.0/src/tool_msgs.c:122:5: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:125:5: throw: if ‘curl_mvfprintf’ throws an exception...
curl-8.15.0/src/tool_msgs.c:125:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 123| DEBUGASSERT(!strchr(fmt, '\n'));
# 124| fputs("curl: ", errors); /* prefix it */
# 125|-> vfprintf(errors, fmt, ap);
# 126| va_end(ap);
# 127| fputs("\n", errors); /* newline it */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 741| if(config->cert && !config->cert_type && is_pkcs11_uri(config->cert)) {
# 742| config->cert_type = strdup("ENG");
# 743|-> if(!config->cert_type)
# 744| return CURLE_OUT_OF_MEMORY;
# 745| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 741| if(config->cert && !config->cert_type && is_pkcs11_uri(config->cert)) {
# 742| config->cert_type = strdup("ENG");
# 743|-> if(!config->cert_type)
# 744| return CURLE_OUT_OF_MEMORY;
# 745| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:751:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 749| if(config->key && !config->key_type && is_pkcs11_uri(config->key)) {
# 750| config->key_type = strdup("ENG");
# 751|-> if(!config->key_type)
# 752| return CURLE_OUT_OF_MEMORY;
# 753| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:751:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 749| if(config->key && !config->key_type && is_pkcs11_uri(config->key)) {
# 750| config->key_type = strdup("ENG");
# 751|-> if(!config->key_type)
# 752| return CURLE_OUT_OF_MEMORY;
# 753| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:760:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 758| is_pkcs11_uri(config->proxy_cert)) {
# 759| config->proxy_cert_type = strdup("ENG");
# 760|-> if(!config->proxy_cert_type)
# 761| return CURLE_OUT_OF_MEMORY;
# 762| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:760:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 758| is_pkcs11_uri(config->proxy_cert)) {
# 759| config->proxy_cert_type = strdup("ENG");
# 760|-> if(!config->proxy_cert_type)
# 761| return CURLE_OUT_OF_MEMORY;
# 762| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:769:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 767| is_pkcs11_uri(config->proxy_key)) {
# 768| config->proxy_key_type = strdup("ENG");
# 769|-> if(!config->proxy_key_type)
# 770| return CURLE_OUT_OF_MEMORY;
# 771| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:769:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 767| is_pkcs11_uri(config->proxy_key)) {
# 768| config->proxy_key_type = strdup("ENG");
# 769|-> if(!config->proxy_key_type)
# 770| return CURLE_OUT_OF_MEMORY;
# 771| }
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*config.etag_compare_file, "r")'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 821| strerror(errno));
# 822|
# 823|-> if((PARAM_OK == file2string(&etag_from_file, file)) &&
# 824| etag_from_file) {
# 825| header = aprintf("If-None-Match: %s", etag_from_file);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*config.etag_compare_file, "r")’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 821| strerror(errno));
# 822|
# 823|-> if((PARAM_OK == file2string(&etag_from_file, file)) &&
# 824| etag_from_file) {
# 825| header = aprintf("If-None-Match: %s", etag_from_file);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*config.etag_compare_file, "r")'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 821| strerror(errno));
# 822|
# 823|-> if((PARAM_OK == file2string(&etag_from_file, file)) &&
# 824| etag_from_file) {
# 825| header = aprintf("If-None-Match: %s", etag_from_file);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*config.etag_compare_file, "r")’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 821| strerror(errno));
# 822|
# 823|-> if((PARAM_OK == file2string(&etag_from_file, file)) &&
# 824| etag_from_file) {
# 825| header = aprintf("If-None-Match: %s", etag_from_file);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1174:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.state.outfiles'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1172| if(urlnode->outfile && !state->outfiles) {
# 1173| state->outfiles = strdup(urlnode->outfile);
# 1174|-> if(!state->outfiles) {
# 1175| errorf(global, "out of memory");
# 1176| result = CURLE_OUT_OF_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1174:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.state.outfiles’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1172| if(urlnode->outfile && !state->outfiles) {
# 1173| state->outfiles = strdup(urlnode->outfile);
# 1174|-> if(!state->outfiles) {
# 1175| errorf(global, "out of memory");
# 1176| result = CURLE_OUT_OF_MEMORY;
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-file-leak]: leak of FILE 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1251| }
# 1252|
# 1253|-> curl = curl_easy_init();
# 1254| if(curl)
# 1255| result = add_per_transfer(&per);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1251| }
# 1252|
# 1253|-> curl = curl_easy_init();
# 1254| if(curl)
# 1255| result = add_per_transfer(&per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-malloc-leak]: leak of 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1251| }
# 1252|
# 1253|-> curl = curl_easy_init();
# 1254| if(curl)
# 1255| result = add_per_transfer(&per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-malloc-leak]: leak of ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1251| }
# 1252|
# 1253|-> curl = curl_easy_init();
# 1254| if(curl)
# 1255| result = add_per_transfer(&per);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-file-leak]: leak of FILE 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1257| result = CURLE_OUT_OF_MEMORY;
# 1258| if(result) {
# 1259|-> curl_easy_cleanup(curl);
# 1260| if(etag_save->fopened)
# 1261| fclose(etag_save->stream);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1257| result = CURLE_OUT_OF_MEMORY;
# 1258| if(result) {
# 1259|-> curl_easy_cleanup(curl);
# 1260| if(etag_save->fopened)
# 1261| fclose(etag_save->stream);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-malloc-leak]: leak of 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1257| result = CURLE_OUT_OF_MEMORY;
# 1258| if(result) {
# 1259|-> curl_easy_cleanup(curl);
# 1260| if(etag_save->fopened)
# 1261| fclose(etag_save->stream);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-malloc-leak]: leak of ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1257| result = CURLE_OUT_OF_MEMORY;
# 1258| if(result) {
# 1259|-> curl_easy_cleanup(curl);
# 1260| if(etag_save->fopened)
# 1261| fclose(etag_save->stream);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1493:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1491| /* parallel connect means that we do not set PIPEWAIT since pipewait
# 1492| will make libcurl prefer multiplexing */
# 1493|-> (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494| global->parallel_connect ? 0L : 1L);
# 1495| (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1493:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1491| /* parallel connect means that we do not set PIPEWAIT since pipewait
# 1492| will make libcurl prefer multiplexing */
# 1493|-> (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494| global->parallel_connect ? 0L : 1L);
# 1495| (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1495:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1493| (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494| global->parallel_connect ? 0L : 1L);
# 1495|-> (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1495:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1493| (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494| global->parallel_connect ? 0L : 1L);
# 1495|-> (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1497:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1495| (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497|-> (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1497:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1495| (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497|-> (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1498:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|-> (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500| (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1498:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1496| /* curl does not use signals, switching this on saves some system calls */
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|-> (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500| (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1499:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|-> (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500| (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501| #ifdef DEBUGBUILD
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1499:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1497| (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|-> (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500| (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501| #ifdef DEBUGBUILD
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1500:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|-> (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501| #ifdef DEBUGBUILD
# 1502| if(getenv("CURL_FORBID_REUSE"))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1500:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1498| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499| (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|-> (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501| #ifdef DEBUGBUILD
# 1502| if(getenv("CURL_FORBID_REUSE"))
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1506:13: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1504| #endif
# 1505|
# 1506|-> mcode = curl_multi_add_handle(multi, per->curl);
# 1507| if(mcode) {
# 1508| DEBUGASSERT(mcode == CURLM_OUT_OF_MEMORY);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:1506:13: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1504| #endif
# 1505|
# 1506|-> mcode = curl_multi_add_handle(multi, per->curl);
# 1507| if(mcode) {
# 1508| DEBUGASSERT(mcode == CURLM_OUT_OF_MEMORY);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2054:21: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2052| 1 = yes */
# 2053| if(using_schannel == -1) {
# 2054|-> CURL *curltls = curl_easy_init();
# 2055| /* The TLS backend remains, so keep the info */
# 2056| struct curl_tlssessioninfo *tls_backend_info = NULL;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2054:21: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2052| 1 = yes */
# 2053| if(using_schannel == -1) {
# 2054|-> CURL *curltls = curl_easy_init();
# 2055| /* The TLS backend remains, so keep the info */
# 2056| struct curl_tlssessioninfo *tls_backend_info = NULL;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2061:16: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2059| result = CURLE_OUT_OF_MEMORY;
# 2060| else {
# 2061|-> result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
# 2062| &tls_backend_info);
# 2063| if(!result)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2061:16: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2059| result = CURLE_OUT_OF_MEMORY;
# 2060| else {
# 2061|-> result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
# 2062| &tls_backend_info);
# 2063| if(!result)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2067:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2065| (tls_backend_info->backend == CURLSSLBACKEND_SCHANNEL);
# 2066| }
# 2067|-> curl_easy_cleanup(curltls);
# 2068| if(result)
# 2069| return result;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2067:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2065| (tls_backend_info->backend == CURLSSLBACKEND_SCHANNEL);
# 2066| }
# 2067|-> curl_easy_cleanup(curltls);
# 2068| if(result)
# 2069| return result;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2087:15: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2085| {
# 2086| CURLcode result = CURLE_OUT_OF_MEMORY;
# 2087|-> char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088| if(env) {
# 2089| config->cacert = strdup(env);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2087:15: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2085| {
# 2086| CURLcode result = CURLE_OUT_OF_MEMORY;
# 2087|-> char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088| if(env) {
# 2089| config->cacert = strdup(env);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2089:5: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2087| char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088| if(env) {
# 2089|-> config->cacert = strdup(env);
# 2090| curl_free(env);
# 2091| if(!config->cacert)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2089:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2087| char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088| if(env) {
# 2089|-> config->cacert = strdup(env);
# 2090| curl_free(env);
# 2091| if(!config->cacert)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2090:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2088| if(env) {
# 2089| config->cacert = strdup(env);
# 2090|-> curl_free(env);
# 2091| if(!config->cacert)
# 2092| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2090:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2088| if(env) {
# 2089| config->cacert = strdup(env);
# 2090|-> curl_free(env);
# 2091| if(!config->cacert)
# 2092| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2095:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2093| }
# 2094| else {
# 2095|-> env = curl_getenv("SSL_CERT_DIR");
# 2096| if(env) {
# 2097| config->capath = strdup(env);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2095:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2093| }
# 2094| else {
# 2095|-> env = curl_getenv("SSL_CERT_DIR");
# 2096| if(env) {
# 2097| config->capath = strdup(env);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2097:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.capath'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2095| env = curl_getenv("SSL_CERT_DIR");
# 2096| if(env) {
# 2097|-> config->capath = strdup(env);
# 2098| curl_free(env);
# 2099| if(!config->capath)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2097:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.capath’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2095| env = curl_getenv("SSL_CERT_DIR");
# 2096| if(env) {
# 2097|-> config->capath = strdup(env);
# 2098| curl_free(env);
# 2099| if(!config->capath)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2098:7: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2096| if(env) {
# 2097| config->capath = strdup(env);
# 2098|-> curl_free(env);
# 2099| if(!config->capath)
# 2100| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2098:7: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2096| if(env) {
# 2097| config->capath = strdup(env);
# 2098|-> curl_free(env);
# 2099| if(!config->capath)
# 2100| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2104:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2102| env = curl_getenv("SSL_CERT_FILE");
# 2103| if(env) {
# 2104|-> config->cacert = strdup(env);
# 2105| curl_free(env);
# 2106| if(!config->cacert)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2104:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2102| env = curl_getenv("SSL_CERT_FILE");
# 2103| if(env) {
# 2104|-> config->cacert = strdup(env);
# 2105| curl_free(env);
# 2106| if(!config->cacert)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2145:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2143| /* Check we have a url */
# 2144| if(!config->url_list || !config->url_list->url) {
# 2145|-> helpf(tool_stderr, "(%d) no URL specified", CURLE_FAILED_INIT);
# 2146| return CURLE_FAILED_INIT;
# 2147| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_operate.c:2145:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2143| /* Check we have a url */
# 2144| if(!config->url_list || !config->url_list->url) {
# 2145|-> helpf(tool_stderr, "(%d) no URL specified", CURLE_FAILED_INIT);
# 2146| return CURLE_FAILED_INIT;
# 2147| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:425:21: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:424:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:425:21: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:425:21: throw: if 'proto_token' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:425:21: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 423| protoset[0] = NULL;
# 424| for(; *val; val++) {
# 425|-> const char *p = proto_token(*val);
# 426|
# 427| if(p)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:425:21: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:424:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:425:21: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:425:21: throw: if ‘proto_token’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:425:21: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 423| protoset[0] = NULL;
# 424| for(; *val; val++) {
# 425|-> const char *p = proto_token(*val);
# 426|
# 427| if(p)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:464:23: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:7: branch_true: following 'true' branch (when 'plen == 3')...
curl-8.15.0/src/tool_paramhlp.c:464:23: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:23: throw: if 'curl_strnequal' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:464:23: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 462| }
# 463|
# 464|-> if((plen == 3) && curl_strnequal(str, "all", 3)) {
# 465| switch(action) {
# 466| case deny:
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:464:23: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:7: branch_true: following ‘true’ branch (when ‘plen == 3’)...
curl-8.15.0/src/tool_paramhlp.c:464:23: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:23: throw: if ‘curl_strnequal’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:464:23: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 462| }
# 463|
# 464|-> if((plen == 3) && curl_strnequal(str, "all", 3)) {
# 465| switch(action) {
# 466| case deny:
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:479:7: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:479:7: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:479:7: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 477| char buffer[32];
# 478| const char *p;
# 479|-> msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
# 480|
# 481| p = proto_token(buffer);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:479:7: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:479:7: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:479:7: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 477| char buffer[32];
# 478| const char *p;
# 479|-> msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
# 480|
# 481| p = proto_token(buffer);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:481:11: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:481:11: throw: if 'proto_token' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:481:11: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 479| msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
# 480|
# 481|-> p = proto_token(buffer);
# 482|
# 483| if(p)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:481:11: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:481:11: throw: if ‘proto_token’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:481:11: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 479| msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
# 480|
# 481|-> p = proto_token(buffer);
# 482|
# 483| if(p)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:500:9: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:483:9: branch_false: following 'false' branch...
curl-8.15.0/src/tool_paramhlp.c:498:11: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:500:9: throw: if 'warnf' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:500:9: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 498| if(action == set)
# 499| protoset[0] = NULL;
# 500|-> warnf(config->global, "unrecognized protocol '%s'", buffer);
# 501| }
# 502| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:500:9: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:483:9: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_paramhlp.c:498:11: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:500:9: throw: if ‘warnf’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:500:9: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 498| if(action == set)
# 499| protoset[0] = NULL;
# 500|-> warnf(config->global, "unrecognized protocol '%s'", buffer);
# 501| }
# 502| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:510:3: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:408:16: enter_function: entry to 'proto2num'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:510:3: call_function: inlined call to 'protoset_index' from 'proto2num'
curl-8.15.0/src/tool_paramhlp.c:510:3: throw: if 'qsort' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:510:3: danger: 'protoset' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
# 508|
# 509| /* We need the protocols in alphabetic order for CI tests requirements. */
# 510|-> qsort((char *) protoset, protoset_index(protoset, NULL), sizeof(*protoset),
# 511| struplocompare4sort);
# 512|
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_paramhlp.c:510:3: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:408:16: enter_function: entry to ‘proto2num’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:510:3: call_function: inlined call to ‘protoset_index’ from ‘proto2num’
curl-8.15.0/src/tool_paramhlp.c:510:3: throw: if ‘qsort’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:510:3: danger: ‘protoset’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
# 508|
# 509| /* We need the protocols in alphabetic order for CI tests requirements. */
# 510|-> qsort((char *) protoset, protoset_index(protoset, NULL), sizeof(*protoset),
# 511| struplocompare4sort);
# 512|
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_setopt.c:642:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_setopt.c:631:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_setopt.c:642:9: throw: if 'curl_easy_setopt' throws an exception...
curl-8.15.0/src/tool_setopt.c:642:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 640| pval = va_arg(arg, void *);
# 641|
# 642|-> ret = curl_easy_setopt(curl, tag, pval);
# 643|
# 644| va_end(arg);
Error: GCC_ANALYZER_WARNING (CWE-404):
curl-8.15.0/src/tool_setopt.c:642:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_setopt.c:631:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_setopt.c:642:9: throw: if ‘curl_easy_setopt’ throws an exception...
curl-8.15.0/src/tool_setopt.c:642:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 640| pval = va_arg(arg, void *);
# 641|
# 642|-> ret = curl_easy_setopt(curl, tag, pval);
# 643|
# 644| va_end(arg);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-file-leak]: leak of FILE 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
# 47| result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49|-> my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50| my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
# 47| result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49|-> my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50| my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-malloc-leak]: leak of 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
# 47| result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49|-> my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50| my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
# 47| result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49|-> my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50| my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-file-leak]: leak of FILE 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49| my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50|-> my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
# 52| }
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49| my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50|-> my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
# 52| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49| my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50|-> my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
# 52| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
# 48| if(!result && (global->tracetype != TRACE_NONE)) {
# 49| my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
# 50|-> my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
# 51| my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
# 52| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 332| return FALSE;
# 333|
# 334|-> u = curl_url();
# 335| if(!u)
# 336| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 332| return FALSE;
# 333|
# 334|-> u = curl_url();
# 335| if(!u)
# 336| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 332| return FALSE;
# 333|
# 334|-> u = curl_url();
# 335| if(!u)
# 336| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 332| return FALSE;
# 333|
# 334|-> u = curl_url();
# 335| if(!u)
# 336| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 340|
# 341| /* ask to "guess scheme" as then it works without an https:// prefix */
# 342|-> rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 340|
# 341| /* ask to "guess scheme" as then it works without an https:// prefix */
# 342|-> rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 340|
# 341| /* ask to "guess scheme" as then it works without an https:// prefix */
# 342|-> rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 340|
# 341| /* ask to "guess scheme" as then it works without an https:// prefix */
# 342|-> rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344| curl_url_cleanup(u);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 342| rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344|-> curl_url_cleanup(u);
# 345| if(!rc)
# 346| *skip = hlen;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
# 342| rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344|-> curl_url_cleanup(u);
# 345| if(!rc)
# 346| *skip = hlen;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 342| rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344|-> curl_url_cleanup(u);
# 345| if(!rc)
# 346| *skip = hlen;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
# 342| rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
# 343|
# 344|-> curl_url_cleanup(u);
# 345| if(!rc)
# 346| *skip = hlen;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:422:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
curl-8.15.0/src/tool_urlglob.c:350:17: enter_function: entry to 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:361:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:364:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:367:16: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:368:13: call_function: calling 'peek_ipv6' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:368:13: return_function: returning to 'glob_parse' from 'peek_ipv6'
curl-8.15.0/src/tool_urlglob.c:368:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:370:12: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:370:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:371:11: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:364:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:396:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:396:7: branch_true: following 'true' branch (when 'sublen != 0')...
curl-8.15.0/src/tool_urlglob.c:398:7: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:399:13: call_function: calling 'glob_fixed' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:399:13: return_function: returning to 'glob_parse' from 'glob_fixed'
curl-8.15.0/src/tool_urlglob.c:422:7: danger: '<unknown>' leaks here; was allocated at [(32)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/31)
# 420| }
# 421|
# 422|-> if(++glob->size >= GLOB_PATTERN_NUM)
# 423| return GLOBERROR("too many globs", pos, CURLE_URL_MALFORMAT);
# 424| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:422:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
curl-8.15.0/src/tool_urlglob.c:350:17: enter_function: entry to ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:361:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:364:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:367:16: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:368:13: call_function: calling ‘peek_ipv6’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:368:13: return_function: returning to ‘glob_parse’ from ‘peek_ipv6’
curl-8.15.0/src/tool_urlglob.c:368:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:370:12: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:370:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:371:11: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:364:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:396:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:396:7: branch_true: following ‘true’ branch (when ‘sublen != 0’)...
curl-8.15.0/src/tool_urlglob.c:398:7: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:399:13: call_function: calling ‘glob_fixed’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:399:13: return_function: returning to ‘glob_parse’ from ‘glob_fixed’
curl-8.15.0/src/tool_urlglob.c:422:7: danger: ‘<unknown>’ leaks here; was allocated at [(32)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/31)
# 420| }
# 421|
# 422|-> if(++glob->size >= GLOB_PATTERN_NUM)
# 423| return GLOBERROR("too many globs", pos, CURLE_URL_MALFORMAT);
# 424| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: 'glob_buffer' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
# 461| const char *t;
# 462| if(glob_expand->pos) {
# 463|-> msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
# 464| glob_expand->error,
# 465| glob_expand->pos, url, (int)glob_expand->pos - 1, " ");
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: 'glob_expand' leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
# 461| const char *t;
# 462| if(glob_expand->pos) {
# 463|-> msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
# 464| glob_expand->error,
# 465| glob_expand->pos, url, (int)glob_expand->pos - 1, " ");
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: ‘glob_buffer’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
# 461| const char *t;
# 462| if(glob_expand->pos) {
# 463|-> msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
# 464| glob_expand->error,
# 465| glob_expand->pos, url, (int)glob_expand->pos - 1, " ");
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: ‘glob_expand’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
# 461| const char *t;
# 462| if(glob_expand->pos) {
# 463|-> msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
# 464| glob_expand->error,
# 465| glob_expand->pos, url, (int)glob_expand->pos - 1, " ");
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: 'glob_buffer' leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
# 470|
# 471| /* send error description to the error-stream */
# 472|-> fprintf(error, "curl: (%d) %s\n", res, t);
# 473| }
# 474| /* it failed, we cleanup */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: 'glob_expand' leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
# 470|
# 471| /* send error description to the error-stream */
# 472|-> fprintf(error, "curl: (%d) %s\n", res, t);
# 473| }
# 474| /* it failed, we cleanup */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: ‘glob_buffer’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
# 470|
# 471| /* send error description to the error-stream */
# 472|-> fprintf(error, "curl: (%d) %s\n", res, t);
# 473| }
# 474| /* it failed, we cleanup */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: ‘glob_expand’ leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
# 470|
# 471| /* send error description to the error-stream */
# 472|-> fprintf(error, "curl: (%d) %s\n", res, t);
# 473| }
# 474| /* it failed, we cleanup */
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following 'false' branch (when 'writeinfo' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following 'true' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following 'true' branch (when 'flen <= 511')...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_resource: opened here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following 'false' branch (when 'fclose_stream == 0')...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following 'false' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: 'stream' leaks here; was opened at [(20)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/19)
# 613| }
# 614| else {
# 615|-> fprintf(tool_stderr,
# 616| "curl: unknown --write-out variable: '%.*s'\n",
# 617| (int)vlen, ptr);
Error: GCC_ANALYZER_WARNING (CWE-775):
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘stream’
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following ‘false’ branch (when ‘writeinfo’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following ‘true’ branch (when ‘flen <= 511’)...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_resource: opened here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following ‘false’ branch (when ‘fclose_stream == 0’)...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: ‘stream’ leaks here; was opened at [(20)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/19)
# 613| }
# 614| else {
# 615|-> fprintf(tool_stderr,
# 616| "curl: unknown --write-out variable: '%.*s'\n",
# 617| (int)vlen, ptr);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following 'false' branch (when 'writeinfo' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following 'true' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following 'true' branch (when 'flen <= 511')...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_memory: allocated here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following 'false' branch (when 'fclose_stream == 0')...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following 'false' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: 'stream' leaks here; was allocated at [(20)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/19)
# 613| }
# 614| else {
# 615|-> fprintf(tool_stderr,
# 616| "curl: unknown --write-out variable: '%.*s'\n",
# 617| (int)vlen, ptr);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following ‘false’ branch (when ‘writeinfo’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following ‘true’ branch (when ‘flen <= 511’)...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_memory: allocated here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following ‘false’ branch (when ‘fclose_stream == 0’)...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: ‘stream’ leaks here; was allocated at [(20)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/19)
# 613| }
# 614| else {
# 615|-> fprintf(tool_stderr,
# 616| "curl: unknown --write-out variable: '%.*s'\n",
# 617| (int)vlen, ptr);
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 647 | end = strchr(ptr, '}');
# | ^
# 645| ptr += 2;
# 646| }
# 647|-> end = strchr(ptr, '}');
# 648| if(end) {
# 649| char fname[512]; /* holds the longest filename */
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 645| ptr += 2;
# 646| }
# 647|-> end = strchr(ptr, '}');
# 648| if(end) {
# 649| char fname[512]; /* holds the longest filename */
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 647 | end = strchr(ptr, '}');
# | ^
# 645| ptr += 2;
# 646| }
# 647|-> end = strchr(ptr, '}');
# 648| if(end) {
# 649| char fname[512]; /* holds the longest filename */
Error: COMPILER_WARNING (CWE-704):
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 645| ptr += 2;
# 646| }
# 647|-> end = strchr(ptr, '}');
# 648| if(end) {
# 649| char fname[512]; /* holds the longest filename */
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:133:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:133:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
# 131| else if(FUNCMATCH(f, FUNC_JSON, FUNC_JSON_LEN)) {
# 132| f += FUNC_JSON_LEN;
# 133|-> curlx_dyn_reset(out);
# 134| if(clen) {
# 135| if(jsonquoted(c, clen, out, FALSE)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:133:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:133:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
# 131| else if(FUNCMATCH(f, FUNC_JSON, FUNC_JSON_LEN)) {
# 132| f += FUNC_JSON_LEN;
# 133|-> curlx_dyn_reset(out);
# 134| if(clen) {
# 135| if(jsonquoted(c, clen, out, FALSE)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:135:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:135:12: throw: if 'jsonquoted' throws an exception...
curl-8.15.0/src/var.c:135:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
# 133| curlx_dyn_reset(out);
# 134| if(clen) {
# 135|-> if(jsonquoted(c, clen, out, FALSE)) {
# 136| err = PARAM_NO_MEM;
# 137| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:135:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:135:12: throw: if ‘jsonquoted’ throws an exception...
curl-8.15.0/src/var.c:135:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
# 133| curlx_dyn_reset(out);
# 134| if(clen) {
# 135|-> if(jsonquoted(c, clen, out, FALSE)) {
# 136| err = PARAM_NO_MEM;
# 137| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:143:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:143:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:143:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
# 141| else if(FUNCMATCH(f, FUNC_URL, FUNC_URL_LEN)) {
# 142| f += FUNC_URL_LEN;
# 143|-> curlx_dyn_reset(out);
# 144| if(clen) {
# 145| char *enc = curl_easy_escape(NULL, c, (int)clen);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:143:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:143:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:143:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
# 141| else if(FUNCMATCH(f, FUNC_URL, FUNC_URL_LEN)) {
# 142| f += FUNC_URL_LEN;
# 143|-> curlx_dyn_reset(out);
# 144| if(clen) {
# 145| char *enc = curl_easy_escape(NULL, c, (int)clen);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:145:21: throw: if 'curl_easy_escape' throws an exception...
curl-8.15.0/src/var.c:145:21: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
# 143| curlx_dyn_reset(out);
# 144| if(clen) {
# 145|-> char *enc = curl_easy_escape(NULL, c, (int)clen);
# 146| if(!enc) {
# 147| err = PARAM_NO_MEM;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:145:21: throw: if ‘curl_easy_escape’ throws an exception...
curl-8.15.0/src/var.c:145:21: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
# 143| curlx_dyn_reset(out);
# 144| if(clen) {
# 145|-> char *enc = curl_easy_escape(NULL, c, (int)clen);
# 146| if(!enc) {
# 147| err = PARAM_NO_MEM;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:152:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:152:12: throw: if 'curlx_dyn_add' throws an exception...
curl-8.15.0/src/var.c:152:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
# 150|
# 151| /* put it in the output */
# 152|-> if(curlx_dyn_add(out, enc))
# 153| err = PARAM_NO_MEM;
# 154| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:152:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:152:12: throw: if ‘curlx_dyn_add’ throws an exception...
curl-8.15.0/src/var.c:152:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
# 150|
# 151| /* put it in the output */
# 152|-> if(curlx_dyn_add(out, enc))
# 153| err = PARAM_NO_MEM;
# 154| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:154:9: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:154:9: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
# 152| if(curlx_dyn_add(out, enc))
# 153| err = PARAM_NO_MEM;
# 154|-> curl_free(enc);
# 155| if(err)
# 156| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:154:9: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:154:9: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
# 152| if(curlx_dyn_add(out, enc))
# 153| err = PARAM_NO_MEM;
# 154|-> curl_free(enc);
# 155| if(err)
# 156| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:161:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:161:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
# 159| else if(FUNCMATCH(f, FUNC_B64, FUNC_B64_LEN)) {
# 160| f += FUNC_B64_LEN;
# 161|-> curlx_dyn_reset(out);
# 162| if(clen) {
# 163| char *enc;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:161:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:161:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
# 159| else if(FUNCMATCH(f, FUNC_B64, FUNC_B64_LEN)) {
# 160| f += FUNC_B64_LEN;
# 161|-> curlx_dyn_reset(out);
# 162| if(clen) {
# 163| char *enc;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:165:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:165:27: throw: if 'curlx_base64_encode' throws an exception...
curl-8.15.0/src/var.c:165:27: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
# 163| char *enc;
# 164| size_t elen;
# 165|-> CURLcode result = curlx_base64_encode(c, clen, &enc, &elen);
# 166| if(result) {
# 167| err = PARAM_NO_MEM;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:165:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:165:27: throw: if ‘curlx_base64_encode’ throws an exception...
curl-8.15.0/src/var.c:165:27: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
# 163| char *enc;
# 164| size_t elen;
# 165|-> CURLcode result = curlx_base64_encode(c, clen, &enc, &elen);
# 166| if(result) {
# 167| err = PARAM_NO_MEM;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:172:12: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/var.c:172:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
# 170|
# 171| /* put it in the output */
# 172|-> if(curlx_dyn_addn(out, enc, elen))
# 173| err = PARAM_NO_MEM;
# 174| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:172:12: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/var.c:172:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
# 170|
# 171| /* put it in the output */
# 172|-> if(curlx_dyn_addn(out, enc, elen))
# 173| err = PARAM_NO_MEM;
# 174| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:174:9: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:174:9: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:174:9: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
# 172| if(curlx_dyn_addn(out, enc, elen))
# 173| err = PARAM_NO_MEM;
# 174|-> curl_free(enc);
# 175| if(err)
# 176| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:174:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:174:9: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:174:9: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
# 172| if(curlx_dyn_addn(out, enc, elen))
# 173| err = PARAM_NO_MEM;
# 174|-> curl_free(enc);
# 175| if(err)
# 176| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:181:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:181:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:181:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
# 179| else if(FUNCMATCH(f, FUNC_64DEC, FUNC_64DEC_LEN)) {
# 180| f += FUNC_64DEC_LEN;
# 181|-> curlx_dyn_reset(out);
# 182| if(clen) {
# 183| unsigned char *enc;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:181:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:181:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:181:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
# 179| else if(FUNCMATCH(f, FUNC_64DEC, FUNC_64DEC_LEN)) {
# 180| f += FUNC_64DEC_LEN;
# 181|-> curlx_dyn_reset(out);
# 182| if(clen) {
# 183| unsigned char *enc;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:185:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:185:27: throw: if 'curlx_base64_decode' throws an exception...
curl-8.15.0/src/var.c:185:27: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
# 183| unsigned char *enc;
# 184| size_t elen;
# 185|-> CURLcode result = curlx_base64_decode(c, &enc, &elen);
# 186| /* put it in the output */
# 187| if(result) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:185:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:185:27: throw: if ‘curlx_base64_decode’ throws an exception...
curl-8.15.0/src/var.c:185:27: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
# 183| unsigned char *enc;
# 184| size_t elen;
# 185|-> CURLcode result = curlx_base64_decode(c, &enc, &elen);
# 186| /* put it in the output */
# 187| if(result) {
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:188:14: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:188:14: throw: if 'curlx_dyn_add' throws an exception...
curl-8.15.0/src/var.c:188:14: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
# 186| /* put it in the output */
# 187| if(result) {
# 188|-> if(curlx_dyn_add(out, "[64dec-fail]"))
# 189| err = PARAM_NO_MEM;
# 190| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:188:14: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:188:14: throw: if ‘curlx_dyn_add’ throws an exception...
curl-8.15.0/src/var.c:188:14: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
# 186| /* put it in the output */
# 187| if(result) {
# 188|-> if(curlx_dyn_add(out, "[64dec-fail]"))
# 189| err = PARAM_NO_MEM;
# 190| }
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:192:14: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:192:14: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/var.c:192:14: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
# 190| }
# 191| else {
# 192|-> if(curlx_dyn_addn(out, enc, elen))
# 193| err = PARAM_NO_MEM;
# 194| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:192:14: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:192:14: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/var.c:192:14: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
# 190| }
# 191| else {
# 192|-> if(curlx_dyn_addn(out, enc, elen))
# 193| err = PARAM_NO_MEM;
# 194| curl_free(enc);
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:194:11: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:194:11: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
# 192| if(curlx_dyn_addn(out, enc, elen))
# 193| err = PARAM_NO_MEM;
# 194|-> curl_free(enc);
# 195| }
# 196| if(err)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:194:11: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:194:11: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
# 192| if(curlx_dyn_addn(out, enc, elen))
# 193| err = PARAM_NO_MEM;
# 194|-> curl_free(enc);
# 195| }
# 196| if(err)
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:202:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:202:7: throw: if 'errorf' throws an exception...
curl-8.15.0/src/var.c:202:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
# 200| else {
# 201| /* unsupported function */
# 202|-> errorf(global, "unknown variable function in '%.*s'",
# 203| (int)flen, finput);
# 204| err = PARAM_EXPAND_ERROR;
Error: GCC_ANALYZER_WARNING (CWE-401):
curl-8.15.0/src/var.c:202:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:202:7: throw: if ‘errorf’ throws an exception...
curl-8.15.0/src/var.c:202:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
# 200| else {
# 201| /* unsupported function */
# 202|-> errorf(global, "unknown variable function in '%.*s'",
# 203| (int)flen, finput);
# 204| err = PARAM_EXPAND_ERROR;