libedit-3.1-57.20251016cvs.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libedit-20251016-3.1/examples/fileman.c:89:4: warning[-Wanalyzer-null-argument]: use of NULL ‘xmalloc(strlen(s) + 1)’ where non-null expected
libedit-20251016-3.1/examples/fileman.c:84:1: enter_function: entry to ‘dupstr’
libedit-20251016-3.1/examples/fileman.c:88:8: call_function: calling ‘xmalloc’ from ‘dupstr’
libedit-20251016-3.1/examples/fileman.c:88:8: return_function: returning to ‘dupstr’ from ‘xmalloc’
libedit-20251016-3.1/examples/fileman.c:89:4: danger: argument 1 (‘xmalloc(strlen(s) + 1)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libedit-20251016-3.1/examples/tc1.c:98:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
libedit-20251016-3.1/examples/tc1.c:95:19: acquire_memory: allocated here
libedit-20251016-3.1/examples/tc1.c:98:30: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libedit-20251016-3.1/examples/tc1.c:110:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
libedit-20251016-3.1/examples/tc1.c:95:19: acquire_memory: allocated here
libedit-20251016-3.1/examples/tc1.c:110:19: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
libedit-20251016-3.1/examples/tc1.c:110:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir(".")’ where non-null expected
libedit-20251016-3.1/examples/tc1.c:95:19: acquire_memory: this call could return NULL
libedit-20251016-3.1/examples/tc1.c:110:19: danger: argument 1 (‘opendir(".")’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libedit-20251016-3.1/examples/wtc1.c:63:31: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
libedit-20251016-3.1/examples/wtc1.c:59:19: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:63:31: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libedit-20251016-3.1/examples/wtc1.c:70:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
libedit-20251016-3.1/examples/wtc1.c:59:19: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:70:20: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-252): [#def7]
libedit-20251016-3.1/examples/wtc1.c: scope_hint: In function ‘complete’
libedit-20251016-3.1/examples/wtc1.c:75:9: warning[-Wunused-result]: ignoring return value of ‘wctomb’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-456): [#def8]
libedit-20251016-3.1/examples/wtc1.c:85: error[uninitdata]: Memory is allocated but not initialized: bptr
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libedit-20251016-3.1/examples/wtc1.c:91:19: warning[-Wanalyzer-malloc-leak]: leak of ‘bptr’
libedit-20251016-3.1/examples/wtc1.c:77:22: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:19: danger: ‘bptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libedit-20251016-3.1/examples/wtc1.c:91:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
libedit-20251016-3.1/examples/wtc1.c:59:19: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:19: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
libedit-20251016-3.1/examples/wtc1.c:91:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir(".")’ where non-null expected
libedit-20251016-3.1/examples/wtc1.c:59:19: acquire_memory: this call could return NULL
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:19: danger: argument 1 (‘opendir(".")’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libedit-20251016-3.1/examples/wtc1.c:91:49: warning[-Wanalyzer-malloc-leak]: leak of ‘bptr’
libedit-20251016-3.1/examples/wtc1.c:77:22: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:32: branch_true: following ‘true’ branch (when ‘dp’ is non-NULL)...
libedit-20251016-3.1/examples/wtc1.c:92:36: branch_true: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:49: danger: ‘bptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libedit-20251016-3.1/examples/wtc1.c:97:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bptr’
libedit-20251016-3.1/examples/wtc1.c:77:22: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:91:32: branch_true: following ‘true’ branch (when ‘dp’ is non-NULL)...
libedit-20251016-3.1/examples/wtc1.c:92:36: branch_true: ...to here
libedit-20251016-3.1/examples/wtc1.c:97:29: danger: ‘bptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libedit-20251016-3.1/examples/wtc1.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bptr’
libedit-20251016-3.1/examples/wtc1.c:77:22: acquire_memory: allocated here
libedit-20251016-3.1/examples/wtc1.c:78:12: branch_false: following ‘false’ branch (when ‘bptr’ is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:83:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
libedit-20251016-3.1/examples/wtc1.c:87:9: branch_false: ...to here
libedit-20251016-3.1/examples/wtc1.c:105:9: danger: ‘bptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-252): [#def15]
libedit-20251016-3.1/src/chartype.c: scope_hint: In function 'ct_encode_char'
libedit-20251016-3.1/src/chartype.c:209:17: warning[-Wunused-result]: ignoring return value of 'wctomb' declared with attribute 'warn_unused_result'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libedit-20251016-3.1/src/el.c:114:30: warning[-Wanalyzer-malloc-leak]: leak of 'el'
libedit-20251016-3.1/src/el.c:101:24: acquire_memory: allocated here
libedit-20251016-3.1/src/el.c:103:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:106:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:114:30: danger: 'el' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def17]
libedit-20251016-3.1/src/el.c:220:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:220:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
libedit-20251016-3.1/src/el.c:227:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:227:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
libedit-20251016-3.1/src/el.c:234:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:234:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
libedit-20251016-3.1/src/el.c:243:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:243:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def21]
libedit-20251016-3.1/src/el.c:248:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:248:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def22]
libedit-20251016-3.1/src/el.c:252:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:252:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def23]
libedit-20251016-3.1/src/el.c:278:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:271:29: branch_true: following 'true' branch (when 'i != 20')...
libedit-20251016-3.1/src/el.c:272:40: branch_true: ...to here
libedit-20251016-3.1/src/el.c:278:30: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def24]
libedit-20251016-3.1/src/el.c:283:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:271:29: branch_true: following 'true' branch (when 'i != 20')...
libedit-20251016-3.1/src/el.c:272:40: branch_true: ...to here
libedit-20251016-3.1/src/el.c:283:30: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
libedit-20251016-3.1/src/el.c:288:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:271:29: branch_true: following 'true' branch (when 'i != 20')...
libedit-20251016-3.1/src/el.c:272:40: branch_true: ...to here
libedit-20251016-3.1/src/el.c:288:30: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def26]
libedit-20251016-3.1/src/el.c:293:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:271:29: branch_true: following 'true' branch (when 'i != 20')...
libedit-20251016-3.1/src/el.c:272:40: branch_true: ...to here
libedit-20251016-3.1/src/el.c:293:30: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
libedit-20251016-3.1/src/el.c:298:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:271:29: branch_true: following 'true' branch (when 'i != 20')...
libedit-20251016-3.1/src/el.c:272:40: branch_true: ...to here
libedit-20251016-3.1/src/el.c:298:30: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def28]
libedit-20251016-3.1/src/el.c:314:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:314:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def29]
libedit-20251016-3.1/src/el.c:323:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:323:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def30]
libedit-20251016-3.1/src/el.c:348:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:348:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def31]
libedit-20251016-3.1/src/el.c:360:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:358:20: branch_true: following 'true' branch...
libedit-20251016-3.1/src/el.c:360:25: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def32]
libedit-20251016-3.1/src/el.c:363:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:358:20: branch_false: following 'false' branch (when 'rv == 0')...
libedit-20251016-3.1/src/el.c:361:36: branch_false: ...to here
libedit-20251016-3.1/src/el.c:361:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/el.c:362:38: branch_true: ...to here
libedit-20251016-3.1/src/el.c:363:25: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def33]
libedit-20251016-3.1/src/el.c:371:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:370:20: branch_true: following 'true' branch (when 'rv != 0')...
libedit-20251016-3.1/src/el.c:371:32: branch_true: ...to here
libedit-20251016-3.1/src/el.c:371:32: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
libedit-20251016-3.1/src/el.c:373:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:370:20: branch_false: following 'false' branch (when 'rv == 0')...
libedit-20251016-3.1/src/el.c:373:32: branch_false: ...to here
libedit-20251016-3.1/src/el.c:373:32: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
libedit-20251016-3.1/src/el.c:407:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:407:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def36]
libedit-20251016-3.1/src/el.c:408:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:408:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def37]
libedit-20251016-3.1/src/el.c:409:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:211:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:213:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:213:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:409:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def38]
libedit-20251016-3.1/src/el.c:440:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:440:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def39]
libedit-20251016-3.1/src/el.c:448:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:448:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def40]
libedit-20251016-3.1/src/el.c:453:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:453:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
libedit-20251016-3.1/src/el.c:472:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:472:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
libedit-20251016-3.1/src/el.c:483:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:483:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def43]
libedit-20251016-3.1/src/el.c:488:45: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/el.c:431:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/el.c:434:9: branch_false: ...to here
libedit-20251016-3.1/src/el.c:434:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/el.c:488:45: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def44]
libedit-20251016-3.1/src/eln.c:118:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:118:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def45]
libedit-20251016-3.1/src/eln.c:125:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:125:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def46]
libedit-20251016-3.1/src/eln.c:132:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:132:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def47]
libedit-20251016-3.1/src/eln.c:141:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:141:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def48]
libedit-20251016-3.1/src/eln.c:146:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:146:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def49]
libedit-20251016-3.1/src/eln.c:150:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:150:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def50]
libedit-20251016-3.1/src/eln.c:159:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:159:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def51]
libedit-20251016-3.1/src/eln.c:174:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:170:29: branch_true: following 'true' branch (when 'i != 19')...
libedit-20251016-3.1/src/eln.c:171:40: branch_true: ...to here
libedit-20251016-3.1/src/eln.c:174:33: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def52]
libedit-20251016-3.1/src/eln.c:222:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:222:25: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def53]
libedit-20251016-3.1/src/eln.c:228:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:223:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/eln.c:228:57: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:228:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libedit-20251016-3.1/src/eln.c:230:17: warning[-Wanalyzer-malloc-leak]: leak of 'wcsdup(*<unknown>)'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:223:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/eln.c:228:57: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:228:39: acquire_memory: allocated here
libedit-20251016-3.1/src/eln.c:230:17: danger: 'wcsdup(*<unknown>)' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libedit-20251016-3.1/src/eln.c:230:17: warning[-Wanalyzer-malloc-leak]: leak of 'wcsdup(<unknown>[1])'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:223:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/eln.c:228:57: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:228:57: acquire_memory: allocated here
libedit-20251016-3.1/src/eln.c:230:17: danger: 'wcsdup(<unknown>[1])' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def56]
libedit-20251016-3.1/src/eln.c:236:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:236:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def57]
libedit-20251016-3.1/src/eln.c:242:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:242:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def58]
libedit-20251016-3.1/src/eln.c:246:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:246:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def59]
libedit-20251016-3.1/src/eln.c:252:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:252:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def60]
libedit-20251016-3.1/src/eln.c:257:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:257:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def61]
libedit-20251016-3.1/src/eln.c:258:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:258:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def62]
libedit-20251016-3.1/src/eln.c:259:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:110:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:112:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:112:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:259:17: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
libedit-20251016-3.1/src/eln.c:289:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:289:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def64]
libedit-20251016-3.1/src/eln.c:298:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:298:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def65]
libedit-20251016-3.1/src/eln.c:306:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:306:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def66]
libedit-20251016-3.1/src/eln.c:307:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:307:22: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def67]
libedit-20251016-3.1/src/eln.c:314:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:314:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def68]
libedit-20251016-3.1/src/eln.c:322:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:322:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def69]
libedit-20251016-3.1/src/eln.c:331:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:331:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def70]
libedit-20251016-3.1/src/eln.c:336:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:336:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def71]
libedit-20251016-3.1/src/eln.c:340:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:340:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def72]
libedit-20251016-3.1/src/eln.c:346:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/eln.c:280:12: branch_false: following 'false' branch (when 'el' is non-NULL)...
libedit-20251016-3.1/src/eln.c:283:9: branch_false: ...to here
libedit-20251016-3.1/src/eln.c:283:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/eln.c:346:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libedit-20251016-3.1/src/filecomplete.c:95:21: warning[-Wanalyzer-malloc-leak]: leak of 'find_word_to_complete(*<unknown>.cursor, *<unknown>.buffer, word_break, special_prefixes, & len, do_unescape)'
libedit-20251016-3.1/src/filecomplete.c:843:1: enter_function: entry to '_el_fn_complete'
libedit-20251016-3.1/src/filecomplete.c:845:31: call_function: calling 'fn_complete' from '_el_fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libedit-20251016-3.1/src/filecomplete.c:95:21: warning[-Wanalyzer-malloc-leak]: leak of 'temp'
libedit-20251016-3.1/src/filecomplete.c:81:12: branch_true: following 'true' branch (when 'pos' is NULL)...
libedit-20251016-3.1/src/filecomplete.c:82:24: branch_true: ...to here
libedit-20251016-3.1/src/filecomplete.c:82:24: acquire_memory: allocated here
libedit-20251016-3.1/src/filecomplete.c:83:20: branch_false: following 'false' branch (when 'temp' is non-NULL)...
libedit-20251016-3.1/src/filecomplete.c:93:13: branch_false: ...to here
libedit-20251016-3.1/src/filecomplete.c:93:12: branch_true: following 'true' branch...
libedit-20251016-3.1/src/filecomplete.c:95:21: branch_true: ...to here
libedit-20251016-3.1/src/filecomplete.c:95:21: danger: 'temp' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libedit-20251016-3.1/src/filecomplete.c:105:21: warning[-Wanalyzer-malloc-leak]: leak of 'find_word_to_complete(*<unknown>.cursor, *<unknown>.buffer, word_break, special_prefixes, & len, do_unescape)'
libedit-20251016-3.1/src/filecomplete.c:843:1: enter_function: entry to '_el_fn_complete'
libedit-20251016-3.1/src/filecomplete.c:845:31: call_function: calling 'fn_complete' from '_el_fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libedit-20251016-3.1/src/filecomplete.c:105:21: warning[-Wanalyzer-malloc-leak]: leak of 'temp'
libedit-20251016-3.1/src/filecomplete.c:81:12: branch_true: following 'true' branch (when 'pos' is NULL)...
libedit-20251016-3.1/src/filecomplete.c:82:24: branch_true: ...to here
libedit-20251016-3.1/src/filecomplete.c:82:24: acquire_memory: allocated here
libedit-20251016-3.1/src/filecomplete.c:83:20: branch_false: following 'false' branch (when 'temp' is non-NULL)...
libedit-20251016-3.1/src/filecomplete.c:93:13: branch_false: ...to here
libedit-20251016-3.1/src/filecomplete.c:93:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/filecomplete.c:105:21: branch_false: ...to here
libedit-20251016-3.1/src/filecomplete.c:105:21: danger: 'temp' leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libedit-20251016-3.1/src/filecomplete.c:375:31: warning[-Wanalyzer-malloc-leak]: leak of 'find_word_to_complete(*<unknown>.cursor, *<unknown>.buffer, word_break, special_prefixes, & len, do_unescape)'
libedit-20251016-3.1/src/filecomplete.c:843:1: enter_function: entry to '_el_fn_complete'
libedit-20251016-3.1/src/filecomplete.c:845:31: call_function: calling 'fn_complete' from '_el_fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libedit-20251016-3.1/src/filecomplete.c:395:23: warning[-Wanalyzer-malloc-leak]: leak of 'find_word_to_complete(*<unknown>.cursor, *<unknown>.buffer, word_break, special_prefixes, & len, do_unescape)'
libedit-20251016-3.1/src/filecomplete.c:843:1: enter_function: entry to '_el_fn_complete'
libedit-20251016-3.1/src/filecomplete.c:845:31: call_function: calling 'fn_complete' from '_el_fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libedit-20251016-3.1/src/filecomplete.c:471:26: warning[-Wanalyzer-malloc-leak]: leak of 'match_list'
libedit-20251016-3.1/src/filecomplete.c:825:1: enter_function: entry to 'fn_complete'
libedit-20251016-3.1/src/filecomplete.c:832:16: call_function: calling 'fn_complete2' from 'fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libedit-20251016-3.1/src/filecomplete.c:707:21: warning[-Wanalyzer-malloc-leak]: leak of 'find_word_to_complete(*<unknown>.cursor, *<unknown>.buffer, word_break, special_prefixes, & len, do_unescape)'
libedit-20251016-3.1/src/filecomplete.c:825:1: enter_function: entry to 'fn_complete'
libedit-20251016-3.1/src/filecomplete.c:832:16: call_function: calling 'fn_complete2' from 'fn_complete'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libedit-20251016-3.1/src/hist.c:198:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libedit-20251016-3.1/src/hist.c:173:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/hist.c:176:12: branch_false: ...to here
libedit-20251016-3.1/src/hist.c:182:43: branch_true: following 'true' branch (when 'str' is non-NULL)...
libedit-20251016-3.1/src/hist.c:184:29: branch_true: ...to here
libedit-20251016-3.1/src/hist.c:189:28: branch_true: following 'true' branch (when 'maxlen <= len')...
libedit-20251016-3.1/src/hist.c:190:33: branch_true: ...to here
libedit-20251016-3.1/src/hist.c:192:36: branch_false: following 'false' branch (when 'nbuf' is non-NULL)...
libedit-20251016-3.1/src/hist.c:198:25: branch_false: ...to here
libedit-20251016-3.1/src/hist.c:198:25: danger: 'buf' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libedit-20251016-3.1/src/history.c:816:24: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:789:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:792:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:794:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:797:13: branch_false: ...to here
libedit-20251016-3.1/src/history.c:797:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:800:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:800:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:801:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/history.c:803:21: branch_true: following 'true' branch...
libedit-20251016-3.1/src/history.c:804:20: branch_true: ...to here
libedit-20251016-3.1/src/history.c:806:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:816:24: branch_false: ...to here
libedit-20251016-3.1/src/history.c:816:24: danger: 'ptr' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def83]
libedit-20251016-3.1/src/history.c:816:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1079:26: call_function: calling 'history_load' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def84]
libedit-20251016-3.1/src/history.c:817:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1079:26: call_function: calling 'history_load' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def85]
libedit-20251016-3.1/src/history.c:820:21: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1079:26: call_function: calling 'history_load' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libedit-20251016-3.1/src/history.c:849:13: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libedit-20251016-3.1/src/history.c:891:1: enter_function: entry to 'history_save'
libedit-20251016-3.1/src/history.c:896:8: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:900:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:900:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:900:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libedit-20251016-3.1/src/history.c:903:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:903:9: call_function: calling 'history_save_fp' from 'history_save'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def87]
libedit-20251016-3.1/src/history.c:849:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1091:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libedit-20251016-3.1/src/history.c:855:31: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:851:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:852:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
libedit-20251016-3.1/src/history.c:854:12: branch_false: ...to here
libedit-20251016-3.1/src/history.c:854:12: branch_true: following 'true' branch (when 'nelem != 18446744073709551615')...
libedit-20251016-3.1/src/history.c:855:31: branch_true: ...to here
libedit-20251016-3.1/src/history.c:855:31: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def89]
libedit-20251016-3.1/src/history.c:855:31: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1099:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libedit-20251016-3.1/src/history.c:856:30: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:851:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:852:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
libedit-20251016-3.1/src/history.c:854:12: branch_false: ...to here
libedit-20251016-3.1/src/history.c:854:12: branch_true: following 'true' branch (when 'nelem != 18446744073709551615')...
libedit-20251016-3.1/src/history.c:855:31: branch_true: ...to here
libedit-20251016-3.1/src/history.c:855:47: branch_true: following 'true' branch...
libedit-20251016-3.1/src/history.c:856:30: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def91]
libedit-20251016-3.1/src/history.c:856:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1099:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libedit-20251016-3.1/src/history.c:862:26: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libedit-20251016-3.1/src/history.c:891:1: enter_function: entry to 'history_save'
libedit-20251016-3.1/src/history.c:896:8: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:900:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:900:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:900:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libedit-20251016-3.1/src/history.c:903:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:903:9: call_function: calling 'history_save_fp' from 'history_save'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libedit-20251016-3.1/src/history.c:862:26: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:851:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:852:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
libedit-20251016-3.1/src/history.c:854:12: branch_false: ...to here
libedit-20251016-3.1/src/history.c:862:26: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
libedit-20251016-3.1/src/history.c:862:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1091:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libedit-20251016-3.1/src/history.c:864:44: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libedit-20251016-3.1/src/history.c:891:1: enter_function: entry to 'history_save'
libedit-20251016-3.1/src/history.c:896:8: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:900:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:900:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:900:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libedit-20251016-3.1/src/history.c:903:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:903:9: call_function: calling 'history_save_fp' from 'history_save'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def96]
libedit-20251016-3.1/src/history.c:864:44: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1091:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libedit-20251016-3.1/src/history.c:865:23: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libedit-20251016-3.1/src/history.c:891:1: enter_function: entry to 'history_save'
libedit-20251016-3.1/src/history.c:896:8: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:900:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:900:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:900:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libedit-20251016-3.1/src/history.c:903:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:903:9: call_function: calling 'history_save_fp' from 'history_save'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libedit-20251016-3.1/src/history.c:865:23: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:851:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:852:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
libedit-20251016-3.1/src/history.c:854:12: branch_false: ...to here
libedit-20251016-3.1/src/history.c:864:21: branch_true: following 'true' branch (when 'retval != -1')...
libedit-20251016-3.1/src/history.c:865:23: branch_true: ...to here
libedit-20251016-3.1/src/history.c:865:23: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def99]
libedit-20251016-3.1/src/history.c:865:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1091:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libedit-20251016-3.1/src/history.c:877:24: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libedit-20251016-3.1/src/history.c:891:1: enter_function: entry to 'history_save'
libedit-20251016-3.1/src/history.c:896:8: branch_false: following 'false' branch...
libedit-20251016-3.1/src/history.c:900:15: branch_false: ...to here
libedit-20251016-3.1/src/history.c:900:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:900:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libedit-20251016-3.1/src/history.c:903:9: branch_false: ...to here
libedit-20251016-3.1/src/history.c:903:9: call_function: calling 'history_save_fp' from 'history_save'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libedit-20251016-3.1/src/history.c:877:24: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libedit-20251016-3.1/src/history.c:851:15: acquire_memory: allocated here
libedit-20251016-3.1/src/history.c:852:12: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
libedit-20251016-3.1/src/history.c:854:12: branch_false: ...to here
libedit-20251016-3.1/src/history.c:864:21: branch_true: following 'true' branch (when 'retval != -1')...
libedit-20251016-3.1/src/history.c:865:23: branch_true: ...to here
libedit-20251016-3.1/src/history.c:867:20: branch_false: following 'false' branch (when 'max_size >= len')...
libedit-20251016-3.1/src/history.c:877:24: branch_false: ...to here
libedit-20251016-3.1/src/history.c:877:24: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def102]
libedit-20251016-3.1/src/history.c:877:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1091:26: call_function: calling 'history_save_fp' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
libedit-20251016-3.1/src/history.c:896:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1085:26: call_function: calling 'history_save' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def104]
libedit-20251016-3.1/src/history.c:918:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1106:26: call_function: calling 'history_prev_event' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def105]
libedit-20251016-3.1/src/history.c:918:60: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1106:26: call_function: calling 'history_prev_event' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def106]
libedit-20251016-3.1/src/history.c:932:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1152:26: call_function: calling 'history_next_evdata' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def107]
libedit-20251016-3.1/src/history.c:932:60: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1152:26: call_function: calling 'history_next_evdata' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
libedit-20251016-3.1/src/history.c:952:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1110:26: call_function: calling 'history_next_event' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def109]
libedit-20251016-3.1/src/history.c:952:60: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1110:26: call_function: calling 'history_next_event' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def110]
libedit-20251016-3.1/src/history.c:970:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1114:26: call_function: calling 'history_prev_string' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def111]
libedit-20251016-3.1/src/history.c:970:60: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1114:26: call_function: calling 'history_prev_string' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def112]
libedit-20251016-3.1/src/history.c:988:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1118:26: call_function: calling 'history_next_string' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def113]
libedit-20251016-3.1/src/history.c:988:60: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1001:1: enter_function: entry to 'history_w'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1118:26: call_function: calling 'history_next_string' from 'history_w'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
libedit-20251016-3.1/src/history.c:1030:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1030:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
libedit-20251016-3.1/src/history.c:1034:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1034:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def116]
libedit-20251016-3.1/src/history.c:1039:31: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1039:31: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
libedit-20251016-3.1/src/history.c:1045:31: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1045:31: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def118]
libedit-20251016-3.1/src/history.c:1046:34: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1045:20: branch_true: following 'true' branch...
libedit-20251016-3.1/src/history.c:1046:34: branch_true: ...to here
libedit-20251016-3.1/src/history.c:1046:34: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
libedit-20251016-3.1/src/history.c:1050:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1050:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def120]
libedit-20251016-3.1/src/history.c:1054:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1054:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def121]
libedit-20251016-3.1/src/history.c:1058:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1058:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def122]
libedit-20251016-3.1/src/history.c:1062:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1062:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def123]
libedit-20251016-3.1/src/history.c:1066:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1066:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def124]
libedit-20251016-3.1/src/history.c:1070:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1070:26: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def125]
libedit-20251016-3.1/src/history.c:1074:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libedit-20251016-3.1/src/history.c:1007:9: acquire_resource: 'va_start' called here
libedit-20251016-3.1/src/history.c:1074:17: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libedit-20251016-3.1/src/literal.c:103:22: warning[-Wanalyzer-malloc-leak]: leak of 'b'
libedit-20251016-3.1/src/literal.c:90:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/literal.c:93:28: branch_false: ...to here
libedit-20251016-3.1/src/literal.c:94:28: branch_true: following 'true' branch (when 'i < len')...
libedit-20251016-3.1/src/literal.c:95:38: branch_true: ...to here
libedit-20251016-3.1/src/literal.c:94:28: branch_false: following 'false' branch (when 'i >= len')...
libedit-20251016-3.1/src/literal.c:96:14: branch_false: ...to here
libedit-20251016-3.1/src/literal.c:98:13: acquire_memory: allocated here
libedit-20251016-3.1/src/literal.c:99:12: branch_false: following 'false' branch (when 'b' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/literal.c:102:28: branch_true: following 'true' branch (when 'i < len')...
libedit-20251016-3.1/src/literal.c:103:64: branch_true: ...to here
libedit-20251016-3.1/src/literal.c:103:22: danger: 'b' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libedit-20251016-3.1/src/literal.c:104:14: warning[-Wanalyzer-malloc-leak]: leak of 'b'
libedit-20251016-3.1/src/literal.c:90:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/literal.c:93:28: branch_false: ...to here
libedit-20251016-3.1/src/literal.c:98:13: acquire_memory: allocated here
libedit-20251016-3.1/src/literal.c:99:12: branch_false: following 'false' branch (when 'b' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/literal.c:102:28: branch_false: following 'false' branch (when 'i >= len')...
libedit-20251016-3.1/src/literal.c:104:14: branch_false: ...to here
libedit-20251016-3.1/src/literal.c:104:14: danger: 'b' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libedit-20251016-3.1/src/read.c:215:20: warning[-Wanalyzer-malloc-leak]: leak of 'wcsdup(str)'
libedit-20251016-3.1/src/read.c:213:12: branch_true: following 'true' branch...
libedit-20251016-3.1/src/read.c:215:45: acquire_memory: allocated here
libedit-20251016-3.1/src/read.c:215:20: danger: 'wcsdup(str)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def129]
libedit-20251016-3.1/src/read.c:371:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*ma.level'
libedit-20251016-3.1/src/read.c:84:1: enter_function: entry to 'read_init'
libedit-20251016-3.1/src/read.c:88:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/read.c:92:26: branch_false: ...to here
libedit-20251016-3.1/src/read.c:92:12: branch_true: following 'true' branch...
libedit-20251016-3.1/src/read.c:93:17: branch_true: ...to here
libedit-20251016-3.1/src/read.c:101:9: call_function: calling 'read_end' from 'read_init'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def130]
libedit-20251016-3.1/src/readline.c:800:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'tmp' where non-null expected
libedit-20251016-3.1/src/readline.c:992:1: enter_function: entry to 'history_expand'
libedit-20251016-3.1/src/readline.c:998:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1001:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1006:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1010:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1012:32: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1042:21: branch_true: following 'true' branch...
branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1070:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1079:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: following 'false' branch (when 'nresult' is non-NULL)...
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1082:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1091:23: call_function: calling '_history_expand_command' from 'history_expand'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def131]
libedit-20251016-3.1/src/readline.c:937:37: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'tmp' where non-null expected
libedit-20251016-3.1/src/readline.c:992:1: enter_function: entry to 'history_expand'
libedit-20251016-3.1/src/readline.c:998:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1001:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1006:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1010:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1012:32: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1042:21: branch_true: following 'true' branch...
branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1070:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1079:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: following 'false' branch (when 'nresult' is non-NULL)...
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1082:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1091:23: call_function: calling '_history_expand_command' from 'history_expand'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def132]
libedit-20251016-3.1/src/readline.c:944:37: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'tmp' where non-null expected
libedit-20251016-3.1/src/readline.c:992:1: enter_function: entry to 'history_expand'
libedit-20251016-3.1/src/readline.c:998:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1001:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1006:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1010:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1012:32: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1042:21: branch_true: following 'true' branch...
branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1070:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1079:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1080:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: following 'false' branch (when 'nresult' is non-NULL)...
libedit-20251016-3.1/src/readline.c:1080:17: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1082:20: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1091:23: call_function: calling '_history_expand_command' from 'history_expand'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
libedit-20251016-3.1/src/readline.c:1252:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libedit-20251016-3.1/src/readline.c:1238:1: enter_function: entry to 'stifle_history'
libedit-20251016-3.1/src/readline.c:1243:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1246:12: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1247:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1250:24: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1251:30: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1251:30: call_function: calling 'remove_history' from 'stifle_history'
libedit-20251016-3.1/src/readline.c:1251:30: return_function: returning to 'stifle_history' from 'remove_history'
libedit-20251016-3.1/src/readline.c:1252:25: danger: dereference of NULL 'remove_history(0)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
libedit-20251016-3.1/src/readline.c:1304:19: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_resource: opened here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:19: danger: 'fopen(filename, "r+")' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libedit-20251016-3.1/src/readline.c:1304:19: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:19: danger: 'fopen(filename, "r+")' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
libedit-20251016-3.1/src/readline.c:1310:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_resource: opened here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_true: following 'true' branch (when 'tp' is NULL)...
libedit-20251016-3.1/src/readline.c:1310:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1310:17: danger: 'fopen(filename, "r+")' leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libedit-20251016-3.1/src/readline.c:1310:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_true: following 'true' branch (when 'tp' is NULL)...
libedit-20251016-3.1/src/readline.c:1310:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1310:17: danger: 'fopen(filename, "r+")' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
libedit-20251016-3.1/src/readline.c:1321:29: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_resource: opened here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1321:29: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1321:29: danger: 'fopen(filename, "r+")' leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libedit-20251016-3.1/src/readline.c:1321:29: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r+")'
libedit-20251016-3.1/src/readline.c:1301:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1321:29: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1321:29: danger: 'fopen(filename, "r+")' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libedit-20251016-3.1/src/readline.c:1321:29: warning[-Wanalyzer-malloc-leak]: leak of 'tp'
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1321:29: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1321:29: danger: 'tp' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libedit-20251016-3.1/src/readline.c:1339:25: warning[-Wanalyzer-malloc-leak]: leak of 'tp'
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1321:29: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1321:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1326:41: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1327:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1331:28: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1331:28: branch_true: following 'true' branch (when 'left == 0')...
libedit-20251016-3.1/src/readline.c:1332:33: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1339:25: danger: 'tp' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-127): [#def142]
libedit-20251016-3.1/src/readline.c:1351:12: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1318:39: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1348:12: branch_false: following 'false' branch (when 'ret == 0')...
libedit-20251016-3.1/src/readline.c:1350:25: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1351:12: danger: out-of-bounds read at byte -1 but 'buf' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def143]
libedit-20251016-3.1/src/readline.c:1355:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1318:39: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1348:12: branch_false: following 'false' branch (when 'ret == 0')...
libedit-20251016-3.1/src/readline.c:1350:25: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1351:11: branch_false: following 'false' branch...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1354:24: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1355:29: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1355:29: danger: out-of-bounds read at byte -2 but 'buf' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libedit-20251016-3.1/src/readline.c:1386:13: warning[-Wanalyzer-malloc-leak]: leak of 'tp'
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1317:28: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1321:29: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1321:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1323:39: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1348:12: branch_false: following 'false' branch (when 'ret == 0')...
libedit-20251016-3.1/src/readline.c:1350:25: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1351:11: branch_false: following 'false' branch...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1354:24: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1355:29: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1355:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1356:36: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1356:36: branch_true: following 'true' branch (when 'nlines == 0')...
libedit-20251016-3.1/src/readline.c:1357:44: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1357:44: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1365:21: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1365:20: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1383:13: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1383:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1386:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1386:13: danger: 'tp' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libedit-20251016-3.1/src/readline.c:1391:13: warning[-Wanalyzer-malloc-leak]: leak of 'tp'
libedit-20251016-3.1/src/readline.c:1301:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1303:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1304:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1309:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1309:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1309:12: branch_false: following 'false' branch (when 'tp' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1348:12: branch_false: following 'false' branch (when 'ret == 0')...
libedit-20251016-3.1/src/readline.c:1350:25: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1351:11: branch_false: following 'false' branch...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1354:24: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1355:29: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1355:28: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1356:36: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1356:36: branch_true: following 'true' branch (when 'nlines == 0')...
libedit-20251016-3.1/src/readline.c:1357:44: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1357:44: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1365:21: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1365:20: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:1383:13: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:1383:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1386:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1386:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1391:24: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1391:13: danger: 'tp' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def146]
libedit-20251016-3.1/src/readline.c: scope_hint: In function 'history_truncate_file'
libedit-20251016-3.1/src/readline.c:1410:23: warning[-Wunused-result]: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
libedit-20251016-3.1/src/readline.c:1475:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "a")'
libedit-20251016-3.1/src/readline.c:1467:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1472:19: acquire_resource: opened here
libedit-20251016-3.1/src/readline.c:1472:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1475:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1475:13: danger: 'fopen(filename, "a")' leaks here; was opened at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libedit-20251016-3.1/src/readline.c:1475:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "a")'
libedit-20251016-3.1/src/readline.c:1467:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1472:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1472:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1475:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1475:13: danger: 'fopen(filename, "a")' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libedit-20251016-3.1/src/readline.c:1573:13: warning[-Wanalyzer-malloc-leak]: leak of 'he'
libedit-20251016-3.1/src/readline.c:1567:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1570:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1570:12: branch_false: following 'false' branch (when 'he' is non-NULL)...
libedit-20251016-3.1/src/readline.c:1573:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1573:13: danger: 'he' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libedit-20251016-3.1/src/readline.c:1612:13: warning[-Wanalyzer-malloc-leak]: leak of 'he'
libedit-20251016-3.1/src/readline.c:1596:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1600:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1602:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1605:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:1608:19: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1608:19: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:1608:12: branch_false: following 'false' branch (when 'he' is non-NULL)...
libedit-20251016-3.1/src/readline.c:1612:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:1612:13: danger: 'he' leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libedit-20251016-3.1/src/readline.c:2155:17: warning[-Wanalyzer-malloc-leak]: leak of 'wbuf'
libedit-20251016-3.1/src/readline.c:2140:12: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:2147:13: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:2148:17: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:2149:20: branch_true: following 'true' branch (when 'done == 2')...
libedit-20251016-3.1/src/readline.c:2150:37: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:2150:37: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:2150:28: branch_true: following 'true' branch (when 'wbuf' is non-NULL)...
libedit-20251016-3.1/src/readline.c:2151:37: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:2155:17: danger: 'wbuf' leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libedit-20251016-3.1/src/readline.c:2406:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libedit-20251016-3.1/src/readline.c:2403:21: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:2403:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2406:25: danger: 'list' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
libedit-20251016-3.1/src/readline.c:2424:9: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libedit-20251016-3.1/src/readline.c:2403:21: acquire_memory: allocated here
libedit-20251016-3.1/src/readline.c:2403:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2406:16: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:2407:22: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:2408:20: branch_false: following 'false' branch (when 'max != len')...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2406:16: branch_true: following 'true' branch...
libedit-20251016-3.1/src/readline.c:2407:22: branch_true: ...to here
libedit-20251016-3.1/src/readline.c:2408:20: branch_false: following 'false' branch (when 'max != len')...
branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2406:16: branch_false: following 'false' branch...
libedit-20251016-3.1/src/readline.c:2416:12: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2416:12: branch_false: following 'false' branch (when 'len != 1')...
libedit-20251016-3.1/src/readline.c:2418:13: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2419:12: branch_false: following 'false' branch (when 'len != 2')...
libedit-20251016-3.1/src/readline.c:2424:9: branch_false: ...to here
libedit-20251016-3.1/src/readline.c:2424:9: danger: 'list' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-252): [#def154]
libedit-20251016-3.1/src/vi.c: scope_hint: In function 'vi_histedit'
libedit-20251016-3.1/src/vi.c:1036:9: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def155]
libedit-20251016-3.1/src/vi.c:1037:9: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libedit-20251016-3.1/src/vis.c:557:23: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
libedit-20251016-3.1/src/vis.c:843:1: enter_function: entry to 'strnvisx'
libedit-20251016-3.1/src/vis.c:845:16: call_function: calling 'istrsenvisx' from 'strnvisx'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
libedit-20251016-3.1/src/vis.c:557:23: warning[-Wanalyzer-malloc-leak]: leak of 'src'
libedit-20251016-3.1/src/vis.c:843:1: enter_function: entry to 'strnvisx'
libedit-20251016-3.1/src/vis.c:845:16: call_function: calling 'istrsenvisx' from 'strnvisx'
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-190.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | libedit-3.1-57.20251016cvs.fc44 |
| store-results-to | /tmp/tmpsuvhqkt4/libedit-3.1-57.20251016cvs.fc44.tar.xz |
| time-created | 2025-10-28 18:57:14 |
| time-finished | 2025-10-28 18:58:44 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpsuvhqkt4/libedit-3.1-57.20251016cvs.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpsuvhqkt4/libedit-3.1-57.20251016cvs.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |