Fixed findings
List of Findings
Error: CPPCHECK_WARNING (CWE-401): [#def1]
squashfs-tools-4.6.1/squashfs-tools/action.c:131: error[memleakOnRealloc]: Common realloc mistake: 'line' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def2]
squashfs-tools-4.6.1/squashfs-tools/action.c:404: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def3]
squashfs-tools-4.6.1/squashfs-tools/action.c:447: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-401): [#def4]
squashfs-tools-4.6.1/squashfs-tools/action.c:452: error[memleakOnRealloc]: Common realloc mistake: 'argv' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def5]
squashfs-tools-4.6.1/squashfs-tools/action.c:464: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def6]
squashfs-tools-4.6.1/squashfs-tools/action.c:476: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def7]
squashfs-tools-4.6.1/squashfs-tools/action.c:513: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def8]
squashfs-tools-4.6.1/squashfs-tools/action.c:532: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def9]
squashfs-tools-4.6.1/squashfs-tools/action.c:542: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def10]
squashfs-tools-4.6.1/squashfs-tools/action.c:551: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def11]
squashfs-tools-4.6.1/squashfs-tools/action.c:580: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def12]
squashfs-tools-4.6.1/squashfs-tools/action.c:590: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def13]
squashfs-tools-4.6.1/squashfs-tools/action.c:602: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def14]
squashfs-tools-4.6.1/squashfs-tools/action.c:618: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-401): [#def15]
squashfs-tools-4.6.1/squashfs-tools/action.c:623: error[memleakOnRealloc]: Common realloc mistake: 'argv' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def16]
squashfs-tools-4.6.1/squashfs-tools/action.c:635: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def17]
squashfs-tools-4.6.1/squashfs-tools/action.c:647: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def18]
squashfs-tools-4.6.1/squashfs-tools/action.c:663: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-401): [#def19]
squashfs-tools-4.6.1/squashfs-tools/action.c:715: error[memleakOnRealloc]: Common realloc mistake: 'spec_list' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def20]
squashfs-tools-4.6.1/squashfs-tools/action.c:778: error[memleakOnRealloc]: Common realloc mistake: 'expr_msg' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
squashfs-tools-4.6.1/squashfs-tools/action.c:778:17: warning[-Wanalyzer-malloc-leak]: leak of ‘expr_msg’
squashfs-tools-4.6.1/squashfs-tools/action.c:887:12: enter_function: entry to ‘eval_expr_top’
squashfs-tools-4.6.1/squashfs-tools/action.c:892:17: call_function: inlined call to ‘expr_log_cmnd’ from ‘eval_expr_top’
squashfs-tools-4.6.1/squashfs-tools/action.c:892:17: call_function: inlined call to ‘expr_log_cmnd’ from ‘eval_expr_top’
squashfs-tools-4.6.1/squashfs-tools/action.c:894:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/action.c:895:25: call_function: inlined call to ‘expr_log’ from ‘eval_expr_top’
Error: CPPCHECK_WARNING (CWE-476): [#def22]
squashfs-tools-4.6.1/squashfs-tools/action.c:1200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def23]
squashfs-tools-4.6.1/squashfs-tools/action.c:1209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def24]
squashfs-tools-4.6.1/squashfs-tools/action.c:1224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def25]
squashfs-tools-4.6.1/squashfs-tools/action.c:1233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def26]
squashfs-tools-4.6.1/squashfs-tools/action.c:1355: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def27]
squashfs-tools-4.6.1/squashfs-tools/action.c:1362: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def28]
squashfs-tools-4.6.1/squashfs-tools/action.c:1369: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def29]
squashfs-tools-4.6.1/squashfs-tools/action.c:1429: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def30]
squashfs-tools-4.6.1/squashfs-tools/action.c:1448: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def31]
squashfs-tools-4.6.1/squashfs-tools/action.c:1489: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def32]
squashfs-tools-4.6.1/squashfs-tools/action.c:1544: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def33]
squashfs-tools-4.6.1/squashfs-tools/action.c:1628: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def34]
squashfs-tools-4.6.1/squashfs-tools/action.c:1639: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def35]
squashfs-tools-4.6.1/squashfs-tools/action.c:2173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def36]
squashfs-tools-4.6.1/squashfs-tools/action.c:2430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def37]
squashfs-tools-4.6.1/squashfs-tools/action.c:2457: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def38]
squashfs-tools-4.6.1/squashfs-tools/action.c:2462: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def39]
squashfs-tools-4.6.1/squashfs-tools/action.c:2469: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def40]
squashfs-tools-4.6.1/squashfs-tools/action.c:2474: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def41]
squashfs-tools-4.6.1/squashfs-tools/action.c:2596: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path
Error: CPPCHECK_WARNING (CWE-476): [#def42]
squashfs-tools-4.6.1/squashfs-tools/action.c:2597: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path
Error: CPPCHECK_WARNING (CWE-476): [#def43]
squashfs-tools-4.6.1/squashfs-tools/action.c:2689: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def44]
squashfs-tools-4.6.1/squashfs-tools/action.c:2720: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def45]
squashfs-tools-4.6.1/squashfs-tools/action.c:2769: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def46]
squashfs-tools-4.6.1/squashfs-tools/action.c:2818: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-401): [#def47]
squashfs-tools-4.6.1/squashfs-tools/action.c:2865: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def48]
squashfs-tools-4.6.1/squashfs-tools/action.c:3122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-476): [#def49]
squashfs-tools-4.6.1/squashfs-tools/action.c:3359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src
Error: CPPCHECK_WARNING (CWE-401): [#def50]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:870: error[memleakOnRealloc]: Common realloc mistake: 'pathname' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def51]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:909: error[memleakOnRealloc]: Common realloc mistake: 'subpath' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def52]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:2797: error[memleakOnRealloc]: Common realloc mistake: 'block_list' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def53]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:3198: error[memleakOnRealloc]: Common realloc mistake: 'b_buffer' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def54]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:5133: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def55]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:5151: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def56]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:5160: error[memleakOnRealloc]: Common realloc mistake: 'old_root_entry' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def57]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:7459: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def58]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:7497: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def59]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:8538: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def60]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:8577: error[memleakOnRealloc]: Common realloc mistake: 'exclude_paths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def61]
squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:8725: error[memleakOnRealloc]: Common realloc mistake: 'fragment_table' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:270:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(destination_file, 0)’
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:265:14: acquire_resource: opened here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:266:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:269:23: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:270:11: danger: ‘open(destination_file, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:276:51: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(destination_file, 0)’
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:265:14: acquire_resource: opened here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:266:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:269:23: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:270:11: branch_false: following ‘false’ branch (when ‘data_buffer’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:270:11: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:320:23: branch_true: following ‘true’ branch (when ‘dupl_ptr’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:321:41: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:338:27: branch_true: following ‘true’ branch (when ‘flag == 0’)...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:339:42: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:341:35: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:351:57: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:354:27: branch_true: following ‘true’ branch (when ‘res == 0’)...
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:355:59: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:276:51: danger: ‘open(destination_file, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def64]
squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1222: error[memleakOnRealloc]: Common realloc mistake: 'line' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def65]
squashfs-tools-4.6.1/squashfs-tools/read_fs.c:153: error[memleakOnRealloc]: Common realloc mistake: 'inode_table' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:104:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xattr_list’
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:359:20: enter_function: entry to ‘get_xattr’
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:369:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:375:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:381:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:388:16: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:393:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:397:19: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:397:19: branch_true: following ‘true’ branch (when ‘res != 0’)...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:398:58: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:400:27: branch_false: following ‘false’ branch (when ‘xattr_list’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:407:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:410:23: call_function: calling ‘read_xattr_entry’ from ‘get_xattr’
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:410:23: return_function: returning to ‘get_xattr’ from ‘read_xattr_entry’
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:411:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:418:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:418:26: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:419:25: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:104:16: danger: ‘xattr_list’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: CPPCHECK_WARNING (CWE-401): [#def67]
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:270: error[memleakOnRealloc]: Common realloc mistake: 'xattrs' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def68]
squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:398: error[memleakOnRealloc]: Common realloc mistake: 'xattr_list' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def69]
squashfs-tools-4.6.1/squashfs-tools/reader.c:94: error[memleakOnRealloc]: Common realloc mistake: 'pathname' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def70]
squashfs-tools-4.6.1/squashfs-tools/tar.c:364:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
squashfs-tools-4.6.1/squashfs-tools/tar.c:1564:16: enter_function: entry to ‘process_tar_file’
squashfs-tools-4.6.1/squashfs-tools/tar.c:1579:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/tar.c:1584:20: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/tar.c:1611:23: call_function: calling ‘add_tarfile’ from ‘process_tar_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
squashfs-tools-4.6.1/squashfs-tools/tar.c:483:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
squashfs-tools-4.6.1/squashfs-tools/tar.c:1564:16: enter_function: entry to ‘process_tar_file’
squashfs-tools-4.6.1/squashfs-tools/tar.c:1579:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/tar.c:1584:20: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/tar.c:1584:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/tar.c:1587:49: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/tar.c:1587:49: call_function: calling ‘lookup_pathname’ from ‘process_tar_file’
Error: CPPCHECK_WARNING (CWE-401): [#def72]
squashfs-tools-4.6.1/squashfs-tools/tar.c:1003: error[memleakOnRealloc]: Common realloc mistake: 'map' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def73]
squashfs-tools-4.6.1/squashfs-tools/tar.c:1118: error[memleakOnRealloc]: Common realloc mistake: 'map' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def74]
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1484:20: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘targname’ where non-null expected
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1576:6: enter_function: entry to ‘add_exclude’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1579:30: call_function: calling ‘add_path’ from ‘add_exclude’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1566:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4488:5: enter_function: entry to ‘main’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4497:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4501:23: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4508:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4511:21: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4511:21: call_function: calling ‘parse_options’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1566:16: warning[-Wanalyzer-malloc-leak]: leak of ‘paths’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4488:5: enter_function: entry to ‘main’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4497:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4501:23: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4508:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4511:21: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4511:21: call_function: calling ‘parse_options’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def77]
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1602:19: warning[-Wanalyzer-deref-before-check]: check of ‘paths’ for NULL after already dereferencing it
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1617:5: enter_function: entry to ‘extract_matches’
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1629:20: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1630:34: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1634:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1635:48: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1644:27: branch_true: following ‘true’ branch (when ‘match != 0’)...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1644:37: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1644:28: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1658:40: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:1658:40: call_function: calling ‘add_subdir’ from ‘extract_matches’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:119:20: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1153:19: enter_function: entry to ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1163:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: following ‘false’ branch (when ‘value != str’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1181:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1182:11: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1185:36: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1185:23: acquire_memory: this call could return NULL
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: call_function: calling ‘xattr_get_type’ from ‘xattr_parse’
Error: CPPCHECK_WARNING (CWE-682): [#def79]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:130: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-401): [#def80]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:328: error[memleakOnRealloc]: Common realloc mistake: 'xattr_table' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def81]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:352: error[memleakOnRealloc]: Common realloc mistake: 'data_cache' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def82]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:468: error[memleakOnRealloc]: Common realloc mistake: 'xattr_id_table' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def83]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:511: error[memleakOnRealloc]: Common realloc mistake: 'xattr_table' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1019:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dest_ptr’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1000:16: acquire_memory: this call could return NULL
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1002:48: branch_true: following ‘true’ branch (when ‘size != 0’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1003:29: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1018:19: branch_false: following ‘false’ branch (when ‘bit_pos != 24’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1027:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1002:48: branch_true: following ‘true’ branch (when ‘size != 0’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1003:29: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1019:25: danger: ‘dest_ptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1037:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dest_ptr’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1153:19: enter_function: entry to ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1163:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: following ‘false’ branch (when ‘value != str’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1181:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1182:11: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1185:36: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: call_function: calling ‘xattr_get_type’ from ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: return_function: returning to ‘xattr_parse’ from ‘xattr_get_type’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1188:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1204:27: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1210:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1217:53: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1217:32: call_function: calling ‘base64_decode’ from ‘xattr_parse’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def86]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1218:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1153:19: enter_function: entry to ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1163:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: following ‘false’ branch (when ‘value != str’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1181:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1182:11: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1185:36: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: call_function: calling ‘xattr_get_type’ from ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: return_function: returning to ‘xattr_parse’ from ‘xattr_get_type’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1188:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1204:27: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1210:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1217:53: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1217:32: call_function: calling ‘base64_decode’ from ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1217:32: return_function: returning to ‘xattr_parse’ from ‘base64_decode’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1218:17: danger: use of uninitialized value ‘size’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def87]
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1238:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1153:19: enter_function: entry to ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1163:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1169:11: branch_false: following ‘false’ branch (when ‘value != str’)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1175:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1181:17: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1182:11: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1185:36: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: call_function: calling ‘xattr_get_type’ from ‘xattr_parse’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1186:23: return_function: returning to ‘xattr_parse’ from ‘xattr_get_type’
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1188:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:12: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1197:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1204:27: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1230:19: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1237:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xattr.c:1238:17: danger: use of uninitialized value ‘size’ here
Error: GCC_ANALYZER_WARNING (CWE-126): [#def88]
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:40: warning[-Wanalyzer-out-of-bounds]: buffer over-read
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:389:11: branch_false: following ‘false’ branch (when ‘filter’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:392:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:393:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:396:9: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch (when ‘datablock != 0’)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:40: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:40: danger: out-of-bounds read from byte 168 till byte 175 but ‘bcj’ ends at byte 168
Error: GCC_ANALYZER_WARNING (CWE-126): [#def89]
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:20: warning[-Wanalyzer-out-of-bounds]: buffer over-read
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:389:11: branch_false: following ‘false’ branch (when ‘filter’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:392:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:393:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:396:9: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:20: danger: out-of-bounds read from byte 184 till byte 187 but ‘bcj’ ends at byte 168
Error: GCC_ANALYZER_WARNING (CWE-126): [#def90]
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: warning[-Wanalyzer-out-of-bounds]: buffer over-read
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:389:11: branch_false: following ‘false’ branch (when ‘filter’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:392:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:393:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:396:9: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: danger: out-of-bounds read from byte 176 till byte 183 but ‘bcj’ ends at byte 168
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:389:11: branch_false: following ‘false’ branch (when ‘filter’ is non-NULL)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:392:26: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:393:11: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:396:9: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: acquire_memory: allocated here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_false: following ‘false’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:413:50: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:408:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:409:19: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:410:44: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:411:27: branch_true: following ‘true’ branch...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:412:33: branch_true: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:424:20: branch_false: following ‘false’ branch (when ‘i >= filters’)...
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:426:9: branch_false: ...to here
squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:429:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Scan Properties
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-24.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | squashfs-tools-4.7.4-1.fc45 |
| diffbase-store-results-to | /tmp/tmpy4021jpw/squashfs-tools-4.7.4-1.fc45.tar.xz |
| diffbase-time-created | 2026-06-01 16:54:25 |
| diffbase-time-finished | 2026-06-01 16:56:02 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpy4021jpw/squashfs-tools-4.7.4-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpy4021jpw/squashfs-tools-4.7.4-1.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-24.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | squashfs-tools-4.6.1-8.fc44 |
| store-results-to | /tmp/tmpo5udnl8w/squashfs-tools-4.6.1-8.fc44.tar.xz |
| time-created | 2026-06-01 16:52:01 |
| time-finished | 2026-06-01 16:54:03 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpo5udnl8w/squashfs-tools-4.6.1-8.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpo5udnl8w/squashfs-tools-4.6.1-8.fc44.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |