chkconfig-1.33-3.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
chkconfig-1.33/alternatives.c:300:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘set’
chkconfig-1.33/alternatives.c:1379:5: enter_function: entry to ‘main’
chkconfig-1.33/alternatives.c:1386:24: release_memory: ‘newAlt.followers’ is NULL
chkconfig-1.33/alternatives.c:1396:8: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1399:15: branch_false: ...to here
chkconfig-1.33/alternatives.c:1400:12: branch_true: following ‘true’ branch...
chkconfig-1.33/alternatives.c:1401:14: branch_true: ...to here
chkconfig-1.33/alternatives.c:1401:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
chkconfig-1.33/alternatives.c:1415:21: branch_false: ...to here
chkconfig-1.33/alternatives.c:1415:19: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1418:19: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1421:16: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1423:16: branch_false: ...to here
chkconfig-1.33/alternatives.c:1423:16: branch_true: following ‘true’ branch...
chkconfig-1.33/alternatives.c:1424:17: branch_true: ...to here
chkconfig-1.33/alternatives.c:1427:40: release_memory: ‘newAlt.followers’ is NULL
chkconfig-1.33/alternatives.c:1429:13: release_memory: using NULL here
chkconfig-1.33/alternatives.c:1429:13: call_function: calling ‘setupLinkSet’ from ‘main’
Error: CPPCHECK_WARNING (CWE-401): [#def2]
chkconfig-1.33/alternatives.c:415: error[memleakOnRealloc]: Common realloc mistake: 'groups' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def3]
chkconfig-1.33/alternatives.c:439: error[memleakOnRealloc]: Common realloc mistake: 'groups' nulled but not freed upon failure
Error: COMPILER_WARNING (CWE-252): [#def4]
chkconfig-1.33/alternatives.c: scope_hint: In function ‘makeLinks’
chkconfig-1.33/alternatives.c:677:13: warning[-Wunused-result]: ignoring return value of ‘readlink’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def5]
chkconfig-1.33/alternatives.c:695:9: warning[-Wunused-result]: ignoring return value of ‘readlink’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def6]
chkconfig-1.33/alternatives.c: scope_hint: In function ‘writeState’
chkconfig-1.33/alternatives.c:797:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def7]
chkconfig-1.33/alternatives.c:802:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def8]
chkconfig-1.33/alternatives.c:805:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def9]
chkconfig-1.33/alternatives.c:808:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def10]
chkconfig-1.33/alternatives.c:816:21: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def11]
chkconfig-1.33/alternatives.c:820:21: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def12]
chkconfig-1.33/alternatives.c:823:21: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def13]
chkconfig-1.33/alternatives.c:827:21: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def14]
chkconfig-1.33/alternatives.c: scope_hint: In function ‘configService’
chkconfig-1.33/alternatives.c:1165:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
chkconfig-1.33/alternatives.c:1449:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘newAlt.family’ where non-null expected
chkconfig-1.33/alternatives.c:1396:8: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1399:15: branch_false: ...to here
chkconfig-1.33/alternatives.c:1400:12: branch_true: following ‘true’ branch...
chkconfig-1.33/alternatives.c:1401:14: branch_true: ...to here
chkconfig-1.33/alternatives.c:1401:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
chkconfig-1.33/alternatives.c:1415:21: branch_false: ...to here
chkconfig-1.33/alternatives.c:1415:19: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1418:19: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1420:19: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1431:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
chkconfig-1.33/alternatives.c:1440:21: branch_false: ...to here
chkconfig-1.33/alternatives.c:1440:19: branch_true: following ‘true’ branch (when the strings are equal)...
chkconfig-1.33/alternatives.c:1441:17: branch_true: ...to here
chkconfig-1.33/alternatives.c:1441:16: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1443:13: branch_false: ...to here
chkconfig-1.33/alternatives.c:1445:16: branch_false: following ‘false’ branch...
chkconfig-1.33/alternatives.c:1447:29: branch_false: ...to here
chkconfig-1.33/alternatives.c:1447:29: acquire_memory: this call could return NULL
chkconfig-1.33/alternatives.c:1449:17: danger: argument 1 (‘strdup(*<unknown>)’) from [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20) could be NULL where non-null expected
Error: COMPILER_WARNING (CWE-252): [#def16]
chkconfig-1.33/chkconfig.c: scope_hint: In function ‘reloadSystemd’
chkconfig-1.33/chkconfig.c:106:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-401): [#def17]
chkconfig-1.33/chkconfig.c:584: error[memleakOnRealloc]: Common realloc mistake: 's' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def18]
chkconfig-1.33/chkconfig.c:590: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
Error: COMPILER_WARNING (CWE-252): [#def19]
chkconfig-1.33/chkconfig.c: scope_hint: In function ‘setService’
chkconfig-1.33/chkconfig.c:672:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def20]
chkconfig-1.33/chkconfig.c: scope_hint: In function ‘forwardSystemd’
chkconfig-1.33/chkconfig.c:691:13: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def21]
chkconfig-1.33/chkconfig.c:693:13: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-401): [#def22]
chkconfig-1.33/leveldb.c:177: error[memleakOnRealloc]: Common realloc mistake: 'desc' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def23]
chkconfig-1.33/leveldb.c:376: error[memleakOnRealloc]: Common realloc mistake: 'servs' nulled but not freed upon failure
Error: COMPILER_WARNING (CWE-252): [#def24]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘readServiceInfo’
chkconfig-1.33/leveldb.c:396:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def25]
chkconfig-1.33/leveldb.c:406:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def26]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘readServiceDifferences’
chkconfig-1.33/leveldb.c:457:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def27]
chkconfig-1.33/leveldb.c:469:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-401): [#def28]
chkconfig-1.33/leveldb.c:510: error[memleakOnRealloc]: Common realloc mistake: 'deps' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-415): [#def29]
chkconfig-1.33/leveldb.c:510:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘deps’
chkconfig-1.33/leveldb.c:522:5: enter_function: entry to ‘parseServiceInfo’
chkconfig-1.33/leveldb.c:526:20: release_memory: first ‘free’ here
chkconfig-1.33/leveldb.c:526:20: release_memory: first ‘free’ here
chkconfig-1.33/leveldb.c:526:20: release_memory: first ‘free’ here
chkconfig-1.33/leveldb.c:526:20: release_memory: first ‘free’ here
chkconfig-1.33/leveldb.c:549:8: branch_false: following ‘false’ branch (when ‘bufstart != 18446744073709551615’)...
chkconfig-1.33/leveldb.c:554:34: branch_false: ...to here
chkconfig-1.33/leveldb.c:555:8: branch_false: following ‘false’ branch (when ‘tmpbufstart’ is non-NULL)...
chkconfig-1.33/leveldb.c:561:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:571:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:574:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:576:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:576:12: branch_false: following ‘false’ branch (when ‘start != bufstop’)...
chkconfig-1.33/leveldb.c:579:15: branch_false: ...to here
chkconfig-1.33/leveldb.c:580:12: branch_true: following ‘true’ branch (when ‘end’ is NULL)...
chkconfig-1.33/leveldb.c:585:12: branch_true: ...to here
chkconfig-1.33/leveldb.c:585:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:588:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:594:12: branch_false: following ‘false’ branch (when ‘start != end’)...
chkconfig-1.33/leveldb.c:596:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:608:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:652:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:653:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:659:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:659:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:665:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:665:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:681:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:681:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:697:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:697:19: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:698:13: branch_true: ...to here
chkconfig-1.33/leveldb.c:699:30: call_function: calling ‘parseDeps’ from ‘parseServiceInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
chkconfig-1.33/leveldb.c:511:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘deps’
chkconfig-1.33/leveldb.c:500:12: branch_false: following ‘false’ branch (when ‘pos != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:511:13: release_memory: ‘deps’ is NULL
chkconfig-1.33/leveldb.c:511:13: release_memory: ‘deps’ is NULL
chkconfig-1.33/leveldb.c:511:9: danger: dereference of NULL ‘deps + ((long unsigned int)numdeps + 18446744073709551615) * 16’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
chkconfig-1.33/leveldb.c:511:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
chkconfig-1.33/leveldb.c:500:12: branch_false: following ‘false’ branch (when ‘pos != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:511:34: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:514:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:500:12: branch_false: following ‘false’ branch (when ‘pos != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:505:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:509:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:511:13: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
chkconfig-1.33/leveldb.c:568:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpbufstart’
chkconfig-1.33/leveldb.c:549:8: branch_false: following ‘false’ branch (when ‘bufstart != 18446744073709551615’)...
chkconfig-1.33/leveldb.c:554:34: branch_false: ...to here
chkconfig-1.33/leveldb.c:554:27: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:555:8: branch_false: following ‘false’ branch (when ‘tmpbufstart’ is non-NULL)...
chkconfig-1.33/leveldb.c:561:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:568:5: danger: ‘tmpbufstart’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
chkconfig-1.33/leveldb.c:727:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
chkconfig-1.33/leveldb.c:549:8: branch_false: following ‘false’ branch (when ‘bufstart != 18446744073709551615’)...
chkconfig-1.33/leveldb.c:554:34: branch_false: ...to here
chkconfig-1.33/leveldb.c:555:8: branch_false: following ‘false’ branch (when ‘tmpbufstart’ is non-NULL)...
chkconfig-1.33/leveldb.c:561:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:571:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:574:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:576:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:576:12: branch_false: following ‘false’ branch (when ‘start != bufstop’)...
chkconfig-1.33/leveldb.c:579:15: branch_false: ...to here
chkconfig-1.33/leveldb.c:580:12: branch_true: following ‘true’ branch (when ‘end’ is NULL)...
chkconfig-1.33/leveldb.c:585:12: branch_true: ...to here
chkconfig-1.33/leveldb.c:585:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:588:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:594:12: branch_false: following ‘false’ branch (when ‘start != end’)...
chkconfig-1.33/leveldb.c:596:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:608:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:652:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:653:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:659:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:659:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:665:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:665:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:681:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:681:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:697:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:697:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:700:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:700:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:703:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:703:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:706:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:706:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:709:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:709:19: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:713:13: branch_true: ...to here
chkconfig-1.33/leveldb.c:717:20: branch_false: following ‘false’ branch (when ‘start != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:722:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:726:17: branch_false: ...to here
chkconfig-1.33/leveldb.c:729:46: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:731:20: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:717:20: branch_false: following ‘false’ branch (when ‘start != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:722:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:726:17: branch_false: ...to here
chkconfig-1.33/leveldb.c:727:17: danger: ‘<unknown>’ leaks here; was allocated at [(45)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/44)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
chkconfig-1.33/leveldb.c:729:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
chkconfig-1.33/leveldb.c:526:20: release_memory: ‘serv.provides’ is NULL
chkconfig-1.33/leveldb.c:549:8: branch_false: following ‘false’ branch (when ‘bufstart != 18446744073709551615’)...
chkconfig-1.33/leveldb.c:554:34: branch_false: ...to here
chkconfig-1.33/leveldb.c:555:8: branch_false: following ‘false’ branch (when ‘tmpbufstart’ is non-NULL)...
chkconfig-1.33/leveldb.c:561:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:571:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:574:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:576:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:576:12: branch_false: following ‘false’ branch (when ‘start != bufstop’)...
chkconfig-1.33/leveldb.c:579:15: branch_false: ...to here
chkconfig-1.33/leveldb.c:580:12: branch_true: following ‘true’ branch (when ‘end’ is NULL)...
chkconfig-1.33/leveldb.c:585:12: branch_true: ...to here
chkconfig-1.33/leveldb.c:585:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:588:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:594:12: branch_false: following ‘false’ branch (when ‘start != end’)...
chkconfig-1.33/leveldb.c:596:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:608:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:652:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:653:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:652:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:659:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:659:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:665:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:665:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:681:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:681:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:697:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:697:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:700:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:700:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:703:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:703:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:706:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:706:19: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:709:21: branch_false: ...to here
chkconfig-1.33/leveldb.c:709:19: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:713:13: branch_true: ...to here
chkconfig-1.33/leveldb.c:717:20: branch_false: following ‘false’ branch (when ‘start != end’)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:722:20: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:726:17: branch_false: ...to here
chkconfig-1.33/leveldb.c:728:29: release_memory: ‘serv.provides’ is NULL
chkconfig-1.33/leveldb.c:729:30: release_memory: using NULL here
chkconfig-1.33/leveldb.c:729:30: release_memory: using NULL here
chkconfig-1.33/leveldb.c:729:17: danger: dereference of NULL ‘realloc(serv.provides, (long unsigned int)(numdeps + 2) * 8) + ((long unsigned int)numdeps + 18446744073709551615) * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
chkconfig-1.33/leveldb.c:759:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘serv.provides’
chkconfig-1.33/leveldb.c:549:8: branch_false: following ‘false’ branch (when ‘bufstart != 18446744073709551615’)...
chkconfig-1.33/leveldb.c:554:34: branch_false: ...to here
chkconfig-1.33/leveldb.c:555:8: branch_false: following ‘false’ branch (when ‘tmpbufstart’ is non-NULL)...
chkconfig-1.33/leveldb.c:561:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:741:8: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:742:13: branch_true: ...to here
chkconfig-1.33/leveldb.c:742:12: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:745:25: branch_false: ...to here
chkconfig-1.33/leveldb.c:749:8: branch_false: following ‘false’ branch (when ‘partialOk != 0’)...
chkconfig-1.33/leveldb.c:756:17: branch_false: ...to here
chkconfig-1.33/leveldb.c:757:8: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:758:25: branch_true: ...to here
chkconfig-1.33/leveldb.c:758:25: acquire_memory: this call could return NULL
chkconfig-1.33/leveldb.c:759:9: danger: ‘malloc(16)’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
chkconfig-1.33/leveldb.c:777:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("/sbin/runlevel", "r")’
chkconfig-1.33/leveldb.c:772:9: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:773:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:776:10: branch_false: ...to here
chkconfig-1.33/leveldb.c:776:8: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:777:9: branch_true: ...to here
chkconfig-1.33/leveldb.c:777:9: danger: ‘popen("/sbin/runlevel", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
chkconfig-1.33/leveldb.c:783:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("/sbin/runlevel", "r")’
chkconfig-1.33/leveldb.c:772:9: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:773:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:776:10: branch_false: ...to here
chkconfig-1.33/leveldb.c:776:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:781:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:783:9: danger: ‘popen("/sbin/runlevel", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
chkconfig-1.33/leveldb.c:894:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:894:9: branch_true: ...to here
chkconfig-1.33/leveldb.c:894:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
chkconfig-1.33/leveldb.c:898:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:898:5: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
chkconfig-1.33/leveldb.c:902:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:902:13: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
chkconfig-1.33/leveldb.c:911:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: this call could return NULL
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:904:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:909:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
chkconfig-1.33/leveldb.c:911:15: branch_true: ...to here
chkconfig-1.33/leveldb.c:911:15: danger: argument 1 (‘buf’) from [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
chkconfig-1.33/leveldb.c:919:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:904:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:909:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
chkconfig-1.33/leveldb.c:911:15: branch_true: ...to here
chkconfig-1.33/leveldb.c:912:12: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:916:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:918:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:918:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:919:13: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def43]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘setXinetdService’
chkconfig-1.33/leveldb.c:919:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
chkconfig-1.33/leveldb.c:920:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:904:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:909:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
chkconfig-1.33/leveldb.c:911:15: branch_true: ...to here
chkconfig-1.33/leveldb.c:912:12: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:916:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:918:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:918:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:920:13: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def45]
chkconfig-1.33/leveldb.c:920:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
chkconfig-1.33/leveldb.c:923:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:904:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:909:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
chkconfig-1.33/leveldb.c:911:15: branch_true: ...to here
chkconfig-1.33/leveldb.c:912:12: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:916:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:918:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:918:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:921:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:922:17: branch_true: ...to here
chkconfig-1.33/leveldb.c:923:17: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def47]
chkconfig-1.33/leveldb.c:923:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
chkconfig-1.33/leveldb.c:924:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
chkconfig-1.33/leveldb.c:884:8: branch_false: following ‘false’ branch (when ‘on != -1’)...
chkconfig-1.33/leveldb.c:887:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:888:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:891:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:892:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:893:8: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:898:5: branch_false: ...to here
chkconfig-1.33/leveldb.c:904:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:909:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
chkconfig-1.33/leveldb.c:911:15: branch_true: ...to here
chkconfig-1.33/leveldb.c:912:12: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
branch_false: ...to here
chkconfig-1.33/leveldb.c:916:16: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:918:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:918:12: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:921:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:922:17: branch_true: ...to here
chkconfig-1.33/leveldb.c:924:17: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def49]
chkconfig-1.33/leveldb.c:924:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def50]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘isOverriddenBySystemd’
chkconfig-1.33/leveldb.c:993:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def51]
chkconfig-1.33/leveldb.c:1000:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def52]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘isSocketActivatedBySystemd’
chkconfig-1.33/leveldb.c:1014:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def53]
chkconfig-1.33/leveldb.c:1015:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def54]
chkconfig-1.33/leveldb.c:1024:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def55]
chkconfig-1.33/leveldb.c:1025:5: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
chkconfig-1.33/leveldb.c:1074:22: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
chkconfig-1.33/leveldb.c:1059:8: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
chkconfig-1.33/leveldb.c:1062:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1063:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1068:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1069:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1075:27: branch_true: ...to here
chkconfig-1.33/leveldb.c:1076:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1081:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:22: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
chkconfig-1.33/leveldb.c:1074:22: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1059:8: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
chkconfig-1.33/leveldb.c:1062:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1063:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1068:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1068:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1069:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:22: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
chkconfig-1.33/leveldb.c:1106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
chkconfig-1.33/leveldb.c:1059:8: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
chkconfig-1.33/leveldb.c:1062:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1063:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1068:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1069:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1075:27: branch_true: ...to here
chkconfig-1.33/leveldb.c:1076:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1081:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1075:27: branch_true: ...to here
chkconfig-1.33/leveldb.c:1076:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1081:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1075:27: branch_true: ...to here
chkconfig-1.33/leveldb.c:1076:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1081:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1074:17: branch_false: following ‘false’ branch...
chkconfig-1.33/leveldb.c:1085:8: branch_false: ...to here
chkconfig-1.33/leveldb.c:1085:8: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
chkconfig-1.33/leveldb.c:1089:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1090:8: branch_false: following ‘false’ branch (when ‘t’ is NULL)...
chkconfig-1.33/leveldb.c:1093:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1094:8: branch_true: following ‘true’ branch (when ‘t’ is NULL)...
chkconfig-1.33/leveldb.c:1096:9: branch_true: ...to here
chkconfig-1.33/leveldb.c:1106:9: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
chkconfig-1.33/leveldb.c:1106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1059:8: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
chkconfig-1.33/leveldb.c:1062:9: branch_false: ...to here
chkconfig-1.33/leveldb.c:1063:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1068:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1068:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1069:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1085:8: branch_true: following ‘true’ branch (when ‘line’ is NULL)...
chkconfig-1.33/leveldb.c:1087:9: branch_true: ...to here
chkconfig-1.33/leveldb.c:1106:9: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def60]
chkconfig-1.33/leveldb.c: scope_hint: In function ‘serviceNameToUnit’
chkconfig-1.33/leveldb.c:1192:9: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
chkconfig-1.33/leveldb.c:1237:21: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1220:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:21: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
chkconfig-1.33/leveldb.c:1237:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:21: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1245:16: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1251:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1256:12: branch_true: following ‘true’ branch...
branch_true: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:21: danger: ‘ret’ leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
chkconfig-1.33/leveldb.c:1237:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tt’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:21: danger: ‘tt’ leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
chkconfig-1.33/leveldb.c:1237:21: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:21: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1245:16: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1251:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1256:12: branch_true: following ‘true’ branch...
branch_true: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:21: danger: ‘t’ leaks here; was allocated at [(12)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
chkconfig-1.33/leveldb.c:1239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1220:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1238:18: branch_true: ...to here
chkconfig-1.33/leveldb.c:1239:17: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
chkconfig-1.33/leveldb.c:1239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:21: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1245:16: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1251:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1256:12: branch_true: following ‘true’ branch...
branch_true: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1238:18: branch_true: ...to here
chkconfig-1.33/leveldb.c:1239:17: danger: ‘ret’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
chkconfig-1.33/leveldb.c:1239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tt’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1238:18: branch_true: ...to here
chkconfig-1.33/leveldb.c:1239:17: danger: ‘tt’ leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
chkconfig-1.33/leveldb.c:1239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:21: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1245:16: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1251:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1256:12: branch_true: following ‘true’ branch...
branch_true: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1237:16: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1238:18: branch_true: ...to here
chkconfig-1.33/leveldb.c:1239:17: danger: ‘t’ leaks here; was allocated at [(12)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
chkconfig-1.33/leveldb.c:1243:26: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1220:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:26: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
chkconfig-1.33/leveldb.c:1243:26: warning[-Wanalyzer-malloc-leak]: leak of ‘tt’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:26: danger: ‘tt’ leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
chkconfig-1.33/leveldb.c:1243:26: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1227:17: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1228:44: branch_true: ...to here
chkconfig-1.33/leveldb.c:1229:12: branch_false: following ‘false’ branch (when ‘tt’ is non-NULL)...
chkconfig-1.33/leveldb.c:1234:12: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:21: branch_true: following ‘true’ branch...
chkconfig-1.33/leveldb.c:1245:16: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
chkconfig-1.33/leveldb.c:1251:13: branch_false: ...to here
chkconfig-1.33/leveldb.c:1243:26: danger: ‘t’ leaks here; was allocated at [(12)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
chkconfig-1.33/leveldb.c:1265:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
chkconfig-1.33/leveldb.c:1215:8: branch_false: following ‘false’ branch (when ‘r >= 0’)...
chkconfig-1.33/leveldb.c:1220:11: branch_false: ...to here
chkconfig-1.33/leveldb.c:1220:11: acquire_memory: allocated here
chkconfig-1.33/leveldb.c:1222:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/leveldb.c:1265:9: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-252): [#def73]
chkconfig-1.33/ntsysv.c: scope_hint: In function ‘servicesWindow’
chkconfig-1.33/ntsysv.c:166:13: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def74]
chkconfig-1.33/ntsysv.c:170:13: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
chkconfig-1.33/ntsysv.c:210:11: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
chkconfig-1.33/ntsysv.c:220:26: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:220:26: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
chkconfig-1.33/ntsysv.c:220:26: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:220:26: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
chkconfig-1.33/ntsysv.c:225:25: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_true: following ‘true’ branch (when ‘i == 256’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:225:25: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
chkconfig-1.33/ntsysv.c:225:25: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_true: following ‘true’ branch (when ‘i == 256’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:225:25: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
chkconfig-1.33/ntsysv.c:234:21: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:234:21: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
chkconfig-1.33/ntsysv.c:234:21: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:234:21: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
chkconfig-1.33/ntsysv.c:240:21: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:236:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:239:19: branch_false: ...to here
chkconfig-1.33/ntsysv.c:240:21: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
chkconfig-1.33/ntsysv.c:240:21: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:236:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:239:19: branch_false: ...to here
chkconfig-1.33/ntsysv.c:240:21: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
chkconfig-1.33/ntsysv.c:274:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:236:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:239:19: branch_false: ...to here
chkconfig-1.33/ntsysv.c:243:12: branch_false: following ‘false’ branch (when ‘enabled != -1’)...
chkconfig-1.33/ntsysv.c:246:13: branch_false: ...to here
chkconfig-1.33/ntsysv.c:246:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:249:18: branch_false: ...to here
chkconfig-1.33/ntsysv.c:250:12: branch_false: following ‘false’ branch (when ‘suffix’ is non-NULL)...
chkconfig-1.33/ntsysv.c:252:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:256:12: branch_false: following ‘false’ branch (when ‘numServices != numServicesAlloced’)...
chkconfig-1.33/ntsysv.c:266:24: branch_false: ...to here
chkconfig-1.33/ntsysv.c:268:38: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:269:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:274:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:274:9: danger: ‘<unknown>’ leaks here; was allocated at [(21)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
chkconfig-1.33/ntsysv.c:274:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:236:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:239:19: branch_false: ...to here
chkconfig-1.33/ntsysv.c:243:12: branch_false: following ‘false’ branch (when ‘enabled != -1’)...
chkconfig-1.33/ntsysv.c:246:13: branch_false: ...to here
chkconfig-1.33/ntsysv.c:246:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:249:18: branch_false: ...to here
chkconfig-1.33/ntsysv.c:250:12: branch_false: following ‘false’ branch (when ‘suffix’ is non-NULL)...
chkconfig-1.33/ntsysv.c:252:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:256:12: branch_false: following ‘false’ branch (when ‘numServices != numServicesAlloced’)...
chkconfig-1.33/ntsysv.c:266:24: branch_false: ...to here
chkconfig-1.33/ntsysv.c:269:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:274:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:274:9: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
chkconfig-1.33/ntsysv.c:274:9: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:206:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:224:12: branch_false: following ‘false’ branch (when ‘i != 256’)...
chkconfig-1.33/ntsysv.c:230:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:231:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:236:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:239:19: branch_false: ...to here
chkconfig-1.33/ntsysv.c:243:12: branch_false: following ‘false’ branch (when ‘enabled != -1’)...
chkconfig-1.33/ntsysv.c:246:13: branch_false: ...to here
chkconfig-1.33/ntsysv.c:246:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:249:18: branch_false: ...to here
chkconfig-1.33/ntsysv.c:250:12: branch_false: following ‘false’ branch (when ‘suffix’ is non-NULL)...
chkconfig-1.33/ntsysv.c:252:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:256:12: branch_false: following ‘false’ branch (when ‘numServices != numServicesAlloced’)...
chkconfig-1.33/ntsysv.c:266:24: branch_false: ...to here
chkconfig-1.33/ntsysv.c:269:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:274:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:274:9: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
chkconfig-1.33/ntsysv.c:298:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’
chkconfig-1.33/ntsysv.c:207:8: branch_false: following ‘false’ branch (when ‘services’ is non-NULL)...
chkconfig-1.33/ntsysv.c:210:11: branch_false: ...to here
chkconfig-1.33/ntsysv.c:210:11: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:211:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:216:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
branch_true: ...to here
chkconfig-1.33/ntsysv.c:297:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:298:9: branch_true: ...to here
chkconfig-1.33/ntsysv.c:298:9: danger: ‘popen("systemctl list-unit-files --no-legend --no-pager", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
chkconfig-1.33/ntsysv.c:318:17: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:17: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
chkconfig-1.33/ntsysv.c:325:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/etc/init.d")’
chkconfig-1.33/ntsysv.c:318:17: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:19: danger: ‘opendir("/etc/init.d")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
chkconfig-1.33/ntsysv.c:325:19: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:19: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
chkconfig-1.33/ntsysv.c:330:24: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:326:20: branch_true: ...to here
chkconfig-1.33/ntsysv.c:326:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:326:41: branch_false: ...to here
chkconfig-1.33/ntsysv.c:326:13: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:327:14: branch_false: ...to here
chkconfig-1.33/ntsysv.c:326:13: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:330:12: branch_false: ...to here
chkconfig-1.33/ntsysv.c:330:12: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:330:24: branch_true: ...to here
chkconfig-1.33/ntsysv.c:330:24: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def92]
chkconfig-1.33/ntsysv.c:343: error[memleakOnRealloc]: Common realloc mistake: 'services' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
chkconfig-1.33/ntsysv.c:347:14: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:326:20: branch_true: ...to here
chkconfig-1.33/ntsysv.c:326:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:326:41: branch_false: ...to here
chkconfig-1.33/ntsysv.c:326:13: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:327:14: branch_false: ...to here
chkconfig-1.33/ntsysv.c:326:13: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:330:12: branch_false: ...to here
chkconfig-1.33/ntsysv.c:333:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:338:14: branch_false: ...to here
chkconfig-1.33/ntsysv.c:338:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:341:13: branch_false: ...to here
chkconfig-1.33/ntsysv.c:341:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:347:14: branch_false: ...to here
chkconfig-1.33/ntsysv.c:347:14: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
chkconfig-1.33/ntsysv.c:370:5: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:370:5: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
chkconfig-1.33/ntsysv.c:373:21: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:21: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
chkconfig-1.33/ntsysv.c:376:13: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:12: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:375:30: branch_true: ...to here
chkconfig-1.33/ntsysv.c:376:13: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
chkconfig-1.33/ntsysv.c:380:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/etc/xinetd.d")’
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:21: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:373:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:380:23: danger: ‘opendir("/etc/xinetd.d")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
chkconfig-1.33/ntsysv.c:380:23: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:380:23: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def99]
chkconfig-1.33/ntsysv.c:395: error[memleakOnRealloc]: Common realloc mistake: 'services' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
chkconfig-1.33/ntsysv.c:399:18: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:380:16: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:381:24: branch_true: ...to here
chkconfig-1.33/ntsysv.c:381:16: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:381:45: branch_false: ...to here
chkconfig-1.33/ntsysv.c:381:17: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:382:17: branch_false: ...to here
chkconfig-1.33/ntsysv.c:381:17: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:385:13: branch_false: ...to here
chkconfig-1.33/ntsysv.c:386:16: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:390:18: branch_false: ...to here
chkconfig-1.33/ntsysv.c:390:16: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:393:17: branch_false: ...to here
chkconfig-1.33/ntsysv.c:393:16: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:399:18: branch_false: ...to here
chkconfig-1.33/ntsysv.c:399:18: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
chkconfig-1.33/ntsysv.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of ‘services’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: allocated here
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:372:8: branch_true: following ‘true’ branch...
chkconfig-1.33/ntsysv.c:373:21: branch_true: ...to here
chkconfig-1.33/ntsysv.c:373:12: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:380:16: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:411:12: branch_false: ...to here
chkconfig-1.33/ntsysv.c:411:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
chkconfig-1.33/ntsysv.c:418:9: branch_false: ...to here
chkconfig-1.33/ntsysv.c:418:9: danger: ‘services’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
chkconfig-1.33/ntsysv.c:423:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘services’ where non-null expected
chkconfig-1.33/ntsysv.c:303:12: enter_function: entry to ‘getServices’
chkconfig-1.33/ntsysv.c:316:16: acquire_memory: this call could return NULL
chkconfig-1.33/ntsysv.c:318:8: branch_false: following ‘false’ branch...
branch_false: ...to here
chkconfig-1.33/ntsysv.c:325:12: branch_false: following ‘false’ branch...
chkconfig-1.33/ntsysv.c:370:5: branch_false: ...to here
chkconfig-1.33/ntsysv.c:421:5: call_function: calling ‘getSystemdServices’ from ‘getServices’
chkconfig-1.33/ntsysv.c:421:5: return_function: returning to ‘getServices’ from ‘getSystemdServices’
chkconfig-1.33/ntsysv.c:423:5: danger: argument 1 (‘services’) from [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
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-206.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 | chkconfig-1.33-3.fc44 |
| store-results-to | /tmp/tmpkn5kr8cr/chkconfig-1.33-3.fc44.tar.xz |
| time-created | 2025-10-28 17:31:20 |
| time-finished | 2025-10-28 17:32:41 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpkn5kr8cr/chkconfig-1.33-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkn5kr8cr/chkconfig-1.33-3.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |