iw-6.17-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
iw-6.17/coalesce.c:37:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_resource: opened here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:37:20: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/coalesce.c:37:20: danger: ‘fopen(*argv, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
iw-6.17/coalesce.c:37:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_memory: allocated here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:37:20: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/coalesce.c:37:20: danger: ‘fopen(*argv, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
iw-6.17/coalesce.c:62:43: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_resource: opened here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:38:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:38:12: branch_false: ...to here
iw-6.17/coalesce.c:43:16: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:46:22: branch_true: ...to here
iw-6.17/coalesce.c:46:20: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:49:23: branch_false: ...to here
iw-6.17/coalesce.c:50:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:52:23: branch_false: ...to here
iw-6.17/coalesce.c:53:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:56:17: branch_false: ...to here
iw-6.17/coalesce.c:58:28: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:61:33: branch_true: ...to here
iw-6.17/coalesce.c:62:43: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/coalesce.c:62:43: danger: ‘fopen(*argv, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
iw-6.17/coalesce.c:62:43: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_memory: allocated here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:38:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:38:12: branch_false: ...to here
iw-6.17/coalesce.c:43:16: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:46:22: branch_true: ...to here
iw-6.17/coalesce.c:46:20: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:49:23: branch_false: ...to here
iw-6.17/coalesce.c:50:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:52:23: branch_false: ...to here
iw-6.17/coalesce.c:53:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:56:17: branch_false: ...to here
iw-6.17/coalesce.c:58:28: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:61:33: branch_true: ...to here
iw-6.17/coalesce.c:62:43: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/coalesce.c:62:43: danger: ‘fopen(*argv, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
iw-6.17/coalesce.c:66:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_resource: opened here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:38:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:38:12: branch_false: ...to here
iw-6.17/coalesce.c:43:16: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:46:22: branch_true: ...to here
iw-6.17/coalesce.c:46:20: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:49:23: branch_false: ...to here
iw-6.17/coalesce.c:50:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:52:23: branch_false: ...to here
iw-6.17/coalesce.c:53:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:56:17: branch_false: ...to here
iw-6.17/coalesce.c:58:28: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:61:33: branch_true: ...to here
iw-6.17/coalesce.c:63:36: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:66:33: branch_false: ...to here
iw-6.17/coalesce.c:66:33: throw: if ‘nla_put’ throws an exception...
iw-6.17/coalesce.c:66:33: danger: ‘fopen(*argv, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
iw-6.17/coalesce.c:66:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "r")’
iw-6.17/coalesce.c:26:19: acquire_memory: allocated here
iw-6.17/coalesce.c:34:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:37:20: branch_false: ...to here
iw-6.17/coalesce.c:38:12: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:38:12: branch_false: ...to here
iw-6.17/coalesce.c:43:16: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:46:22: branch_true: ...to here
iw-6.17/coalesce.c:46:20: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:49:23: branch_false: ...to here
iw-6.17/coalesce.c:50:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:52:23: branch_false: ...to here
iw-6.17/coalesce.c:53:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/coalesce.c:56:17: branch_false: ...to here
iw-6.17/coalesce.c:58:28: branch_true: following ‘true’ branch...
iw-6.17/coalesce.c:61:33: branch_true: ...to here
iw-6.17/coalesce.c:63:36: branch_false: following ‘false’ branch...
iw-6.17/coalesce.c:66:33: branch_false: ...to here
iw-6.17/coalesce.c:66:33: throw: if ‘nla_put’ throws an exception...
iw-6.17/coalesce.c:66:33: danger: ‘fopen(*argv, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
iw-6.17/connect.c:157:15: warning[-Wanalyzer-malloc-leak]: leak of ‘conn_argv’
iw-6.17/connect.c:144:12: branch_false: following ‘false’ branch...
iw-6.17/connect.c:147:9: branch_false: ...to here
iw-6.17/connect.c:148:21: acquire_memory: allocated here
iw-6.17/connect.c:149:12: branch_false: following ‘false’ branch (when ‘conn_argv’ is non-NULL)...
iw-6.17/connect.c:152:9: branch_false: ...to here
iw-6.17/connect.c:157:15: throw: if ‘handle_cmd’ throws an exception...
iw-6.17/connect.c:157:15: danger: ‘conn_argv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-758): [#def8]
iw-6.17/event.c:322: error[subtractPointers]: Subtracting pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-469): [#def9]
iw-6.17/event.c:322:46: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
iw-6.17/event.c:313:12: branch_false: following ‘false’ branch...
iw-6.17/event.c:314:14: branch_false: ...to here
iw-6.17/event.c:313:13: branch_false: following ‘false’ branch...
iw-6.17/event.c:317:21: branch_false: ...to here
iw-6.17/event.c:322:46: danger: subtraction of pointers has undefined behavior if they do not point into the same array object
Error: CPPCHECK_WARNING (CWE-758): [#def10]
iw-6.17/info.c:365: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def11]
iw-6.17/iw.c:197: error[subtractPointers]: Subtracting pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-469): [#def12]
iw-6.17/iw.c:197:9: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
iw-6.17/iw.c:548:5: enter_function: entry to ‘main’
iw-6.17/iw.c:571:17: call_function: calling ‘usage’ from ‘main’
Error: CPPCHECK_WARNING (CWE-758): [#def13]
iw-6.17/iw.c:207: error[subtractPointers]: Subtracting pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
iw-6.17/iw.c:262:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&buf, 0)’
iw-6.17/iw.c:348:12: enter_function: entry to ‘__handle_cmd’
iw-6.17/iw.c:378:26: call_function: calling ‘phy_lookup’ from ‘__handle_cmd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
iw-6.17/iw.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&buf, 0)’
iw-6.17/iw.c:348:12: enter_function: entry to ‘__handle_cmd’
iw-6.17/iw.c:378:26: call_function: calling ‘phy_lookup’ from ‘__handle_cmd’
Error: CPPCHECK_WARNING (CWE-758): [#def16]
iw-6.17/iw.c:408: error[subtractPointers]: Subtracting pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-469): [#def17]
iw-6.17/iw.c:408:9: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
Error: CPPCHECK_WARNING (CWE-758): [#def18]
iw-6.17/iw.c:426: error[subtractPointers]: Subtracting pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
iw-6.17/measurements.c:240:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
iw-6.17/measurements.c:232:17: acquire_resource: opened here
iw-6.17/measurements.c:233:12: branch_false: following ‘false’ branch...
iw-6.17/measurements.c:233:12: branch_false: ...to here
iw-6.17/measurements.c:240:28: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
iw-6.17/measurements.c:240:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
iw-6.17/measurements.c:232:17: acquire_memory: allocated here
iw-6.17/measurements.c:233:12: branch_false: following ‘false’ branch...
iw-6.17/measurements.c:233:12: branch_false: ...to here
iw-6.17/measurements.c:240:28: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
iw-6.17/measurements.c:241:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
iw-6.17/measurements.c:226:12: enter_function: entry to ‘parse_ftm_config’
iw-6.17/measurements.c:232:17: acquire_resource: opened here
iw-6.17/measurements.c:233:12: branch_false: following ‘false’ branch...
iw-6.17/measurements.c:233:12: branch_false: ...to here
iw-6.17/measurements.c:240:28: branch_true: following ‘true’ branch...
iw-6.17/measurements.c:241:21: branch_true: ...to here
iw-6.17/measurements.c:244:21: call_function: calling ‘parse_ftm_target’ from ‘parse_ftm_config’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
iw-6.17/measurements.c:241:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
iw-6.17/measurements.c:226:12: enter_function: entry to ‘parse_ftm_config’
iw-6.17/measurements.c:232:17: acquire_memory: allocated here
iw-6.17/measurements.c:233:12: branch_false: following ‘false’ branch...
iw-6.17/measurements.c:233:12: branch_false: ...to here
iw-6.17/measurements.c:240:28: branch_true: following ‘true’ branch...
iw-6.17/measurements.c:241:21: branch_true: ...to here
iw-6.17/measurements.c:244:21: call_function: calling ‘parse_ftm_target’ from ‘parse_ftm_config’
Error: CPPCHECK_WARNING (CWE-476): [#def23]
iw-6.17/measurements.c:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: req_argv
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
iw-6.17/measurements.c:269:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘req_argv’
iw-6.17/measurements.c:268:20: acquire_memory: this call could return NULL
iw-6.17/measurements.c:269:9: danger: ‘calloc((long unsigned int)(argc + 1), 8)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def25]
iw-6.17/measurements.c:270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: req_argv
Error: CPPCHECK_WARNING (CWE-476): [#def26]
iw-6.17/measurements.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: req_argv
Error: CPPCHECK_WARNING (CWE-476): [#def27]
iw-6.17/measurements.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: req_argv
Error: COMPILER_WARNING (CWE-704): [#def28]
iw-6.17/mesh.c: scope_hint: In function ‘set_interface_meshparam’
iw-6.17/mesh.c:327:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def29]
iw-6.17/mesh.c:327:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
iw-6.17/mgmt.c:130:23: warning[-Wanalyzer-malloc-leak]: leak of ‘mgmt_argv’
iw-6.17/mgmt.c:103:21: acquire_memory: allocated here
iw-6.17/mgmt.c:104:12: branch_false: following ‘false’ branch (when ‘mgmt_argv’ is non-NULL)...
iw-6.17/mgmt.c:107:9: branch_false: ...to here
iw-6.17/mgmt.c:111:12: branch_false: following ‘false’ branch (when ‘argc > 5’)...
iw-6.17/mgmt.c:116:9: branch_false: ...to here
iw-6.17/mgmt.c:118:16: branch_true: following ‘true’ branch (when ‘argc > 2’)...
iw-6.17/mgmt.c:119:21: branch_true: ...to here
iw-6.17/mgmt.c:119:20: branch_false: following ‘false’ branch (when the strings are equal)...
iw-6.17/mgmt.c:124:17: branch_false: ...to here
iw-6.17/mgmt.c:130:23: throw: if ‘handle_cmd’ throws an exception...
iw-6.17/mgmt.c:130:23: danger: ‘mgmt_argv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
iw-6.17/nan.c:233:29: warning[-Wanalyzer-malloc-leak]: leak of ‘srf’
iw-6.17/nan.c:197:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:203:13: branch_false: ...to here
iw-6.17/nan.c:203:12: branch_true: following ‘true’ branch (when the strings are equal)...
iw-6.17/nan.c:212:20: branch_true: ...to here
iw-6.17/nan.c:212:20: branch_false: following ‘false’ branch (when ‘argc > 4’)...
iw-6.17/nan.c:215:26: branch_false: ...to here
iw-6.17/nan.c:216:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:276:1: branch_false: ...to here
iw-6.17/nan.c:221:20: branch_false: following ‘false’ branch...
iw-6.17/nan.c:226:23: branch_false: ...to here
iw-6.17/nan.c:226:23: acquire_memory: allocated here
iw-6.17/nan.c:227:20: branch_false: following ‘false’ branch (when ‘srf’ is non-NULL)...
iw-6.17/nan.c:230:17: branch_false: ...to here
iw-6.17/nan.c:232:24: branch_true: following ‘true’ branch (when ‘cur_mac’ is non-NULL)...
iw-6.17/nan.c:233:29: branch_true: ...to here
iw-6.17/nan.c:233:29: throw: if ‘mac_addr_a2n’ throws an exception...
iw-6.17/nan.c:233:29: danger: ‘srf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
iw-6.17/nan.c:239:25: warning[-Wanalyzer-malloc-leak]: leak of ‘srf’
iw-6.17/nan.c:197:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:203:13: branch_false: ...to here
iw-6.17/nan.c:203:12: branch_true: following ‘true’ branch (when the strings are equal)...
iw-6.17/nan.c:212:20: branch_true: ...to here
iw-6.17/nan.c:212:20: branch_false: following ‘false’ branch (when ‘argc > 4’)...
iw-6.17/nan.c:215:26: branch_false: ...to here
iw-6.17/nan.c:216:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:276:1: branch_false: ...to here
iw-6.17/nan.c:221:20: branch_false: following ‘false’ branch...
iw-6.17/nan.c:226:23: branch_false: ...to here
iw-6.17/nan.c:226:23: acquire_memory: allocated here
iw-6.17/nan.c:227:20: branch_false: following ‘false’ branch (when ‘srf’ is non-NULL)...
iw-6.17/nan.c:230:17: branch_false: ...to here
iw-6.17/nan.c:232:24: branch_true: following ‘true’ branch (when ‘cur_mac’ is non-NULL)...
iw-6.17/nan.c:233:29: branch_true: ...to here
iw-6.17/nan.c:233:28: branch_false: following ‘false’ branch...
iw-6.17/nan.c:239:25: branch_false: ...to here
iw-6.17/nan.c:239:25: throw: if ‘nan_bf’ throws an exception...
iw-6.17/nan.c:239:25: danger: ‘srf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
iw-6.17/nan.c:243:23: warning[-Wanalyzer-malloc-leak]: leak of ‘srf’
iw-6.17/nan.c:197:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:203:13: branch_false: ...to here
iw-6.17/nan.c:203:12: branch_true: following ‘true’ branch (when the strings are equal)...
iw-6.17/nan.c:212:20: branch_true: ...to here
iw-6.17/nan.c:212:20: branch_false: following ‘false’ branch (when ‘argc > 4’)...
iw-6.17/nan.c:215:26: branch_false: ...to here
iw-6.17/nan.c:216:17: branch_false: following ‘false’ branch...
iw-6.17/nan.c:276:1: branch_false: ...to here
iw-6.17/nan.c:221:20: branch_false: following ‘false’ branch...
iw-6.17/nan.c:226:23: branch_false: ...to here
iw-6.17/nan.c:226:23: acquire_memory: allocated here
iw-6.17/nan.c:227:20: branch_false: following ‘false’ branch (when ‘srf’ is non-NULL)...
iw-6.17/nan.c:230:17: branch_false: ...to here
iw-6.17/nan.c:232:24: branch_false: following ‘false’ branch (when ‘cur_mac’ is NULL)...
iw-6.17/nan.c:243:23: branch_false: ...to here
iw-6.17/nan.c:243:23: throw: if ‘nla_put’ throws an exception...
iw-6.17/nan.c:243:23: danger: ‘srf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
iw-6.17/phy.c:373:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cac_trigger_argv’
iw-6.17/phy.c:346:12: branch_false: following ‘false’ branch...
iw-6.17/phy.c:349:12: branch_false: ...to here
iw-6.17/phy.c:349:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
iw-6.17/phy.c:352:13: branch_false: ...to here
iw-6.17/phy.c:359:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
iw-6.17/phy.c:362:35: branch_false: ...to here
iw-6.17/phy.c:362:28: acquire_memory: allocated here
iw-6.17/phy.c:363:12: branch_false: following ‘false’ branch (when ‘cac_trigger_argv’ is non-NULL)...
iw-6.17/phy.c:368:31: branch_false: ...to here
iw-6.17/phy.c:373:15: throw: if ‘handle_cmd’ throws an exception...
iw-6.17/phy.c:373:15: danger: ‘cac_trigger_argv’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
iw-6.17/phy.c:605:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘netns_get_fd(argv[1])’
iw-6.17/phy.c:580:12: enter_function: entry to ‘handle_netns’
iw-6.17/phy.c:588:12: branch_false: following ‘false’ branch...
iw-6.17/phy.c:591:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
iw-6.17/phy.c:601:12: branch_false: ...to here
iw-6.17/phy.c:601:12: branch_false: following ‘false’ branch...
iw-6.17/phy.c:604:19: call_function: calling ‘netns_get_fd’ from ‘handle_netns’
iw-6.17/phy.c:604:19: return_function: returning to ‘handle_netns’ from ‘netns_get_fd’
iw-6.17/phy.c:604:12: branch_true: following ‘true’ branch...
iw-6.17/phy.c:605:17: branch_true: ...to here
iw-6.17/phy.c:605:17: throw: if ‘nla_put’ throws an exception...
iw-6.17/phy.c:605:17: danger: ‘netns_get_fd(argv[1])’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
iw-6.17/scan.c:2809:15: warning[-Wanalyzer-malloc-leak]: leak of ‘trig_argv’
iw-6.17/scan.c:2800:21: acquire_memory: allocated here
iw-6.17/scan.c:2801:12: branch_false: following ‘false’ branch (when ‘trig_argv’ is non-NULL)...
iw-6.17/scan.c:2803:24: branch_false: ...to here
iw-6.17/scan.c:2809:15: throw: if ‘handle_cmd’ throws an exception...
iw-6.17/scan.c:2809:15: danger: ‘trig_argv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
iw-6.17/vendor.c:105:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
iw-6.17/vendor.c:137:12: enter_function: entry to ‘handle_vendor_recv_bin’
iw-6.17/vendor.c:142:16: call_function: calling ‘handle_vendor’ from ‘handle_vendor_recv_bin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
iw-6.17/vendor.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
iw-6.17/vendor.c:137:12: enter_function: entry to ‘handle_vendor_recv_bin’
iw-6.17/vendor.c:142:16: call_function: calling ‘handle_vendor’ from ‘handle_vendor_recv_bin’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
iw-6.17/vendor.c:106:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
iw-6.17/vendor.c:137:12: enter_function: entry to ‘handle_vendor_recv_bin’
iw-6.17/vendor.c:142:16: call_function: calling ‘handle_vendor’ from ‘handle_vendor_recv_bin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
iw-6.17/vendor.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
iw-6.17/vendor.c:137:12: enter_function: entry to ‘handle_vendor_recv_bin’
iw-6.17/vendor.c:142:16: call_function: calling ‘handle_vendor’ from ‘handle_vendor_recv_bin’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
iw-6.17/wowlan.c:27:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:27:15: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/wowlan.c:27:15: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
iw-6.17/wowlan.c:27:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:27:15: throw: if ‘nla_nest_start’ throws an exception...
iw-6.17/wowlan.c:27:15: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
iw-6.17/wowlan.c:55:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:44:20: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:47:38: branch_true: ...to here
iw-6.17/wowlan.c:49:28: branch_false: following ‘false’ branch (when ‘port’ is NULL)...
iw-6.17/wowlan.c:53:29: branch_false: ...to here
iw-6.17/wowlan.c:53:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:55:25: branch_false: ...to here
iw-6.17/wowlan.c:55:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:55:25: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
iw-6.17/wowlan.c:55:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:44:20: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:47:38: branch_true: ...to here
iw-6.17/wowlan.c:49:28: branch_false: following ‘false’ branch (when ‘port’ is NULL)...
iw-6.17/wowlan.c:53:29: branch_false: ...to here
iw-6.17/wowlan.c:53:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:55:25: branch_false: ...to here
iw-6.17/wowlan.c:55:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:55:25: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
iw-6.17/wowlan.c:78:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:63:38: branch_true: ...to here
iw-6.17/wowlan.c:67:28: branch_false: following ‘false’ branch (when ‘port’ is non-NULL)...
iw-6.17/wowlan.c:69:25: branch_false: ...to here
iw-6.17/wowlan.c:72:28: branch_false: following ‘false’ branch (when ‘mac’ is non-NULL)...
iw-6.17/wowlan.c:74:25: branch_false: ...to here
iw-6.17/wowlan.c:76:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:78:25: branch_false: ...to here
iw-6.17/wowlan.c:78:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:78:25: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
iw-6.17/wowlan.c:78:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:63:38: branch_true: ...to here
iw-6.17/wowlan.c:67:28: branch_false: following ‘false’ branch (when ‘port’ is non-NULL)...
iw-6.17/wowlan.c:69:25: branch_false: ...to here
iw-6.17/wowlan.c:72:28: branch_false: following ‘false’ branch (when ‘mac’ is non-NULL)...
iw-6.17/wowlan.c:74:25: branch_false: ...to here
iw-6.17/wowlan.c:76:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:78:25: branch_false: ...to here
iw-6.17/wowlan.c:78:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:78:25: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
iw-6.17/wowlan.c:88:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:88:46: branch_true: ...to here
iw-6.17/wowlan.c:88:46: throw: if ‘parse_hex’ throws an exception...
iw-6.17/wowlan.c:88:46: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
iw-6.17/wowlan.c:88:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:88:46: branch_true: ...to here
iw-6.17/wowlan.c:88:46: throw: if ‘parse_hex’ throws an exception...
iw-6.17/wowlan.c:88:46: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
iw-6.17/wowlan.c:92:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:88:46: branch_true: ...to here
iw-6.17/wowlan.c:90:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:92:25: branch_false: ...to here
iw-6.17/wowlan.c:92:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:92:25: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
iw-6.17/wowlan.c:92:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:88:46: branch_true: ...to here
iw-6.17/wowlan.c:90:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:92:25: branch_false: ...to here
iw-6.17/wowlan.c:92:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:92:25: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
iw-6.17/wowlan.c:95:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:95:25: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:95:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:95:25: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(2)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
iw-6.17/wowlan.c:95:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:95:25: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:95:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:95:25: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
iw-6.17/wowlan.c:101:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:101:29: branch_true: ...to here
iw-6.17/wowlan.c:101:29: throw: if ‘parse_hex_mask’ throws an exception...
iw-6.17/wowlan.c:101:29: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
iw-6.17/wowlan.c:101:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:101:29: branch_true: ...to here
iw-6.17/wowlan.c:101:29: throw: if ‘parse_hex_mask’ throws an exception...
iw-6.17/wowlan.c:101:29: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
iw-6.17/wowlan.c:103:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:101:29: branch_true: ...to here
iw-6.17/wowlan.c:101:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:103:25: branch_false: ...to here
iw-6.17/wowlan.c:103:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:103:25: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
iw-6.17/wowlan.c:103:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:101:29: branch_true: ...to here
iw-6.17/wowlan.c:101:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:103:25: branch_false: ...to here
iw-6.17/wowlan.c:103:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:103:25: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
iw-6.17/wowlan.c:125:35: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:110:60: branch_true: ...to here
iw-6.17/wowlan.c:115:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:117:25: branch_false: ...to here
iw-6.17/wowlan.c:120:28: branch_false: following ‘false’ branch (when ‘start’ is NULL)...
iw-6.17/wowlan.c:125:35: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:128:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:125:35: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(2)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
iw-6.17/wowlan.c:125:35: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:110:60: branch_true: ...to here
iw-6.17/wowlan.c:115:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:117:25: branch_false: ...to here
iw-6.17/wowlan.c:120:28: branch_false: following ‘false’ branch (when ‘start’ is NULL)...
iw-6.17/wowlan.c:125:35: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:128:25: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:125:35: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
iw-6.17/wowlan.c:148:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:130:28: branch_false: ...to here
iw-6.17/wowlan.c:130:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:137:32: branch_true: ...to here
iw-6.17/wowlan.c:138:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:140:25: branch_false: ...to here
iw-6.17/wowlan.c:143:28: branch_false: following ‘false’ branch (when ‘toks’ is non-NULL)...
iw-6.17/wowlan.c:145:25: branch_false: ...to here
iw-6.17/wowlan.c:148:34: throw: if ‘parse_hex’ throws an exception...
iw-6.17/wowlan.c:148:34: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
iw-6.17/wowlan.c:148:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:130:28: branch_false: ...to here
iw-6.17/wowlan.c:130:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:137:32: branch_true: ...to here
iw-6.17/wowlan.c:138:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:140:25: branch_false: ...to here
iw-6.17/wowlan.c:143:28: branch_false: following ‘false’ branch (when ‘toks’ is non-NULL)...
iw-6.17/wowlan.c:145:25: branch_false: ...to here
iw-6.17/wowlan.c:148:34: throw: if ‘parse_hex’ throws an exception...
iw-6.17/wowlan.c:148:34: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
iw-6.17/wowlan.c:151:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_resource: opened here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:130:28: branch_false: ...to here
iw-6.17/wowlan.c:130:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:137:32: branch_true: ...to here
iw-6.17/wowlan.c:138:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:140:25: branch_false: ...to here
iw-6.17/wowlan.c:143:28: branch_false: following ‘false’ branch (when ‘toks’ is non-NULL)...
iw-6.17/wowlan.c:145:25: branch_false: ...to here
iw-6.17/wowlan.c:149:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:151:31: branch_false: ...to here
iw-6.17/wowlan.c:152:28: branch_false: following ‘false’ branch (when ‘tok’ is non-NULL)...
iw-6.17/wowlan.c:158:36: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:162:29: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:151:31: danger: ‘fopen(fn, "r")’ leaks here; was opened at [(2)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
iw-6.17/wowlan.c:151:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "r")’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:22:19: acquire_memory: allocated here
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:130:28: branch_false: ...to here
iw-6.17/wowlan.c:130:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:137:32: branch_true: ...to here
iw-6.17/wowlan.c:138:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:140:25: branch_false: ...to here
iw-6.17/wowlan.c:143:28: branch_false: following ‘false’ branch (when ‘toks’ is non-NULL)...
iw-6.17/wowlan.c:145:25: branch_false: ...to here
iw-6.17/wowlan.c:149:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:151:31: branch_false: ...to here
iw-6.17/wowlan.c:152:28: branch_false: following ‘false’ branch (when ‘tok’ is non-NULL)...
iw-6.17/wowlan.c:158:36: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:162:29: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:151:31: danger: ‘fopen(fn, "r")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
iw-6.17/wowlan.c:162:29: warning[-Wanalyzer-malloc-leak]: leak of ‘tok’
iw-6.17/wowlan.c:18:12: enter_function: entry to ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:25:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:27:15: branch_false: ...to here
iw-6.17/wowlan.c:28:12: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:28:12: branch_false: ...to here
iw-6.17/wowlan.c:31:16: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:34:22: branch_true: ...to here
iw-6.17/wowlan.c:34:20: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:37:23: branch_false: ...to here
iw-6.17/wowlan.c:38:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:40:23: branch_false: ...to here
iw-6.17/wowlan.c:41:20: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
iw-6.17/wowlan.c:44:21: branch_false: ...to here
iw-6.17/wowlan.c:60:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:86:28: branch_false: ...to here
iw-6.17/wowlan.c:86:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:94:28: branch_false: ...to here
iw-6.17/wowlan.c:94:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:97:28: branch_false: ...to here
iw-6.17/wowlan.c:97:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:109:28: branch_false: ...to here
iw-6.17/wowlan.c:109:27: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:130:28: branch_false: ...to here
iw-6.17/wowlan.c:130:27: branch_true: following ‘true’ branch...
iw-6.17/wowlan.c:137:32: branch_true: ...to here
iw-6.17/wowlan.c:138:28: branch_false: following ‘false’ branch (when ‘offs’ is non-NULL)...
iw-6.17/wowlan.c:140:25: branch_false: ...to here
iw-6.17/wowlan.c:143:28: branch_false: following ‘false’ branch (when ‘toks’ is non-NULL)...
iw-6.17/wowlan.c:145:25: branch_false: ...to here
iw-6.17/wowlan.c:149:28: branch_false: following ‘false’ branch...
iw-6.17/wowlan.c:151:31: branch_false: ...to here
iw-6.17/wowlan.c:151:31: acquire_memory: allocated here
iw-6.17/wowlan.c:152:28: branch_false: following ‘false’ branch (when ‘tok’ is non-NULL)...
iw-6.17/wowlan.c:158:36: call_function: inlined call to ‘atoi’ from ‘wowlan_parse_tcp_file’
iw-6.17/wowlan.c:162:29: throw: if ‘nla_put’ throws an exception...
iw-6.17/wowlan.c:162:29: danger: ‘tok’ leaks here; was allocated at [(36)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/35)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| 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-63.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-x86_64 |
| project-name | iw-6.17-1.fc44 |
| store-results-to | /tmp/tmpqugv5p33/iw-6.17-1.fc44.tar.xz |
| time-created | 2026-01-08 17:16:08 |
| time-finished | 2026-01-08 17:17:26 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqugv5p33/iw-6.17-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqugv5p33/iw-6.17-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |