2025-05-08 03:41 ftp://ftp.de.debian.org/debian/pool/main/s/squashfs-tools/squashfs-tools_4.6.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 547 547 elapsed-time: 2.9 2.5 head-timing-info: old-timing-info: head results: squashfs-tools-4.6.1/squashfs-tools/caches-queues-lists.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/caches-queues-lists.c:156:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/caches-queues-lists.c:287:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/caches-queues-lists.c:379:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/compressor.c:92:44: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/compressor.c:116:46: style: Parameter 'indent' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/compressor.c:116:60: style: Parameter 'def_comp' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/compressor.c:129:51: style: Parameter 'def_comp' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/compressor.c:135:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/date.c:82:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:111:55: debug: Function::addArguments found argument 'parse_line' with varid 0. [varid0] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:69:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:246:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:293:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/signals.h:46:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:406:25: style: Local variable 'strategy' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:33:24: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:406:25: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:401:24: style: Variable 'selected' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:455:43: style: Parameter 's' can be declared as pointer to const. However it seems that 'gzip_uncompress' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:502:16: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:455:43: note: Parameter 's' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:488:30: style: Parameter 'option' can be declared as pointer to const. However it seems that 'option_args' is a callback function, if 'option' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:509:17: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/gzip_wrapper.c:488:30: note: Parameter 'option' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:198:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:223:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:75:30: style: Parameter 'argv' can be declared as const array. However it seems that 'lz4_options' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:298:13: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/lz4_wrapper.c:75:30: note: Parameter 'argv' can be declared as const array squashfs-tools-4.6.1/squashfs-tools/lzma_wrapper.c:36:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_PROPS_SIZE [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzma_wrapper.c:86:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_PROPS_SIZE [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzma_wrapper.c:40:26: portability: 'dest' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/lzma_wrapper.c:99:42: portability: 'src' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/lzma_xz_wrapper.c:43:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_STREAM_INIT [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzma_xz_wrapper.c:102:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_STREAM_INIT [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzma_xz_wrapper.c:137:21: portability: 'src' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:72:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:234:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:287:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:349:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZO_E_OK [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:385:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZO_E_OK [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:66:30: style: Parameter 'argv' can be declared as const array. However it seems that 'lzo_options' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:440:13: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:66:30: note: Parameter 'argv' can be declared as const array squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:426:30: style: Parameter 'option' can be declared as pointer to const. However it seems that 'option_args' is a callback function, if 'option' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:446:17: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/lzo_wrapper.c:426:30: note: Parameter 'option' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/xattr.h:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.h:207:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:119:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:252:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:359:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:379:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:404:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:513:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:532:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:580:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:780:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1200:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1224:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1254:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1275:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1300:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1355:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1429:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1544:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1628:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1938:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2166:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2369:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2430:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2457:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2566:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2570:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2614:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2689:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2720:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2769:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2810:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2867:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:2917:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:3122:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:3359:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:89:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:263:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:63:17: style: Variable 'b' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:101:58: style: Parameter 'fragment' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:104:34: style: Variable 'disk_fragment' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/process_fragments.c:253:23: style: Parameter 'destination_file' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/mksquashfs.c:6668:23: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:155:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:166:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:275:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/progressbar.c:107:7: style: Variable 'rotate_list' can be declared as const array [constVariable] squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:44:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:71:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:135:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:166:11: style: Condition 'xattr==NULL' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:164:39: note: Calling function 'xattr_parse' returns 0 squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:164:39: note: Assignment 'xattr=xattr_parse(def,"","pseudo xattr")', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/pseudo_xattr.c:166:11: note: Condition 'xattr==NULL' is always true squashfs-tools-4.6.1/squashfs-tools/xattr.h:108:67: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:119:37: style: Parameter 'dir_ent' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:141:37: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:175:65: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:180:42: style: Parameter 'pattern' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:180:57: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:185:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:198:51: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:198:60: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:198:69: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.h:213:38: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:88:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:210:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:373:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:447:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:575:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1083:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1136:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1205:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:720:8: debug: Function::addArguments found argument 'push_directory_entry' with varid 0. [varid0] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:969:8: debug: Function::addArguments found argument 'push_directory_entry' with varid 0. [varid0] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:155:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:636:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:735:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:817:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:873:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:922:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:1036:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable push_directory_entry [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/action.c:1204:27: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] squashfs-tools-4.6.1/squashfs-tools/action.c:1228:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] squashfs-tools-4.6.1/squashfs-tools/action.c:2684:23: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] squashfs-tools-4.6.1/squashfs-tools/action.c:2715:22: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] squashfs-tools-4.6.1/squashfs-tools/action.c:2277:11: style: Condition 'xattr==NULL' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/action.c:2275:39: note: Calling function 'xattr_parse' returns 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2275:39: note: Assignment 'xattr=xattr_parse(argv[0],"","action xattr add")', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2277:11: note: Condition 'xattr==NULL' is always true squashfs-tools-4.6.1/squashfs-tools/action.c:131:5: error: Common realloc mistake: 'line' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:452:3: error: Common realloc mistake: 'argv' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:623:3: error: Common realloc mistake: 'argv' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:715:3: error: Common realloc mistake: 'spec_list' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:778:3: error: Common realloc mistake: 'expr_msg' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:2865:3: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:404:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:404:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:404:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:404:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:447:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:447:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:447:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:447:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:464:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:464:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:464:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:464:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:476:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:476:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:476:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:476:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:513:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:513:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:513:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:513:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:532:5: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:532:5: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:532:5: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:532:5: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:542:5: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:542:5: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:542:5: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:542:5: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:551:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:551:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:551:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:551:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:580:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:580:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:580:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:580:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:590:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:590:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:590:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:590:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:602:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:602:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:602:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:602:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:618:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:618:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:618:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:618:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:635:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:635:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:635:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:635:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:647:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:647:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:647:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:647:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:663:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:663:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:663:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:663:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1200:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1200:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1200:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1200:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1209:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1209:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1209:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1209:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1224:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1224:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1224:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1224:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1233:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1233:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1233:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1233:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1355:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1355:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1355:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1362:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1362:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1362:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1369:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1369:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1369:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1369:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1429:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1429:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1429:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1429:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1448:4: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1448:4: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1448:4: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1448:4: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1489:6: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1489:6: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1489:6: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1489:6: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1544:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1544:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1544:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1544:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1628:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1628:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1628:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1628:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1639:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:1639:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:1639:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:1639:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2173:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2173:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2173:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2173:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2430:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2430:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2430:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2430:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2457:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2457:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2457:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2457:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2462:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2462:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2462:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2462:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2469:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2469:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2469:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2469:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2474:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2474:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2474:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2474:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2596:19: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2613:28: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2613:28: note: Calling function 'get_start', 1st argument 'strdup(data->subpath)' value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2594:15: note: Assignment 'path=s', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2596:19: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2689:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2689:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2689:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2689:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2720:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2720:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2720:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2720:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2769:2: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2769:2: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2769:2: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2769:2: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:2818:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:2818:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:2818:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:2818:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:3122:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:3122:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:3122:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:3122:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:3359:3: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/action.c:3359:3: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/action.c:3359:3: note: Assignment 'src=strdup(source)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/action.c:3359:3: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/action.c:1723:15: style: Local variable 'pathname' shadows outer function [shadowFunction] squashfs-tools-4.6.1/squashfs-tools/action.c:101:14: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/action.c:1723:15: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/action.c:1777:26: style: Local variable 'source' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/action.c:57:24: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/action.c:1777:26: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/action.c:1779:8: style: Local variable 'comp' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/mksquashfs.h:222:27: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/action.c:1779:8: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/action.c:2022:20: style: Local variable 'source' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/action.c:57:24: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/action.c:2022:20: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/action.c:2985:8: style: Local variable 'comp' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/mksquashfs.h:222:27: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/action.c:2985:8: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/action.c:114:14: style: Variable 'err' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:389:38: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:747:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1086:29: style: Parameter 'fragment' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1088:17: style: Variable 'spec_list_end' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1194:34: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1204:18: style: Variable 'passwd' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1218:34: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1228:17: style: Variable 'group' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1313:19: style: Variable 'uid_info' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1321:19: style: Variable 'gid_info' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1329:20: style: Variable 'guid_info' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1390:37: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1660:21: style: Variable 'data' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1661:19: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1722:19: style: Variable 'dest' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1723:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1762:42: style: Parameter 'comp' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1894:42: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:1949:19: style: Variable 'comp_ent' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2024:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2107:19: style: Variable 'comp_ent' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2232:60: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2334:40: style: Parameter 'action' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2334:64: style: Parameter 'dir_ent' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2355:31: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2421:48: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_number_arg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3522:32: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2421:48: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2447:48: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_range_args' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3534:44: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2447:48: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2566:1: style: Parameter 'atom' can be declared as pointer to const. However it seems that 'name_fn' is a callback function, if 'atom' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3506:15: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2566:1: note: Parameter 'atom' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2570:1: style: Parameter 'atom' can be declared as pointer to const. However it seems that 'pathname_fn' is a callback function, if 'atom' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3507:19: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2570:1: note: Parameter 'atom' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2575:35: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2611:66: style: Parameter 'data' can be declared as pointer to const. However it seems that 'subpathname_fn' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3508:22: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2611:66: note: Parameter 'data' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2680:46: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_user_arg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3520:24: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2680:46: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2684:17: style: Variable 'uid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2711:47: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_group_arg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3518:26: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2711:47: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2715:16: style: Variable 'gid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2752:46: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_type_arg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3535:24: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2752:46: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2777:21: style: Variable 'type' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2786:33: style: Parameter 'atom' can be declared as pointer to const. However it seems that 'true_fn' is a callback function, if 'atom' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3536:15: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2786:33: note: Parameter 'atom' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2786:59: style: Parameter 'action_data' can be declared as pointer to const. However it seems that 'true_fn' is a callback function, if 'action_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3536:15: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2786:59: note: Parameter 'action_data' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2795:34: style: Parameter 'atom' can be declared as pointer to const. However it seems that 'false_fn' is a callback function, if 'atom' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3537:16: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2795:34: note: Parameter 'atom' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2795:60: style: Parameter 'action_data' can be declared as pointer to const. However it seems that 'false_fn' is a callback function, if 'action_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3537:16: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2795:60: note: Parameter 'action_data' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2804:46: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_file_arg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3538:24: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2804:46: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:2834:11: style: Variable 'preg' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:2903:59: style: Parameter 'action_data' can be declared as pointer to const. However it seems that 'exec_fn' is a callback function, if 'action_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3539:15: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:2903:59: note: Parameter 'action_data' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:3079:37: style: Parameter 'atom' can be declared as pointer to const. However it seems that 'absolute_fn' is a callback function, if 'atom' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3541:19: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:3079:37: note: Parameter 'atom' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:3101:47: style: Parameter 'test' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/action.c:3142:59: style: Parameter 'action_data' can be declared as pointer to const. However it seems that 'stat_fn' is a callback function, if 'action_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3542:15: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:3142:59: note: Parameter 'action_data' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:3259:15: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:3351:47: style: Parameter 'test' can be declared as pointer to const. However it seems that 'parse_perm_args' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/action.c:3545:25: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/action.c:3351:47: note: Parameter 'test' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/action.c:3416:20: style: Variable 'perm_data' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/action.c:3417:15: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:697:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:699:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/xattr.h:147:87: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:153:4: error: Common realloc mistake: 'inode_table' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/action.c:1103:21: portability: 'fragment' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:278:14: style: Local variable 'start' shadows outer argument [shadowArgument] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:112:51: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_fs.c:278:14: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_fs.c:338:14: style: Local variable 'start' shadows outer argument [shadowArgument] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:112:51: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_fs.c:338:14: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_fs.c:430:37: style: Local variable 'dir_inode' shadows outer argument [shadowArgument] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:115:3: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_fs.c:430:37: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_fs.c:450:38: style: Local variable 'dir_inode' shadows outer argument [shadowArgument] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:115:3: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_fs.c:450:38: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_fs.c:865:34: style: Local variable 'fragment_table' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/mksquashfs.h:221:40: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_fs.c:865:34: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_fs.c:114:31: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:119:42: style: Parameter 'id_table' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:719:67: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:807:73: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:858:97: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:912:85: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:959:33: style: Parameter 'root_name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:209:2: portability: '(void*)(inode_table+bytes)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:209:2: portability: '(void*)(&dir_inode->dir)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:220:3: portability: '(void*)(inode_table+bytes)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:220:3: portability: '(void*)(&dir_inode->ldir)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:254:3: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:254:3: portability: '(void*)(&base)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:289:4: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:289:4: portability: '(void*)(&inode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:349:4: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:349:4: portability: '(void*)(&inode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:408:4: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:408:4: portability: '(void*)(&inode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:440:4: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:440:4: portability: '(void*)(&dir_inode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:461:4: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:461:4: portability: '(void*)(&dir_inode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:479:5: portability: '(void*)(cur_ptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:479:5: portability: '(void*)(&index)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:760:3: portability: '(void*)(directory_table+bytes)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:760:3: portability: '(void*)(&dirh)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:776:4: portability: '(void*)(directory_table+bytes)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_fs.c:776:4: portability: '(void*)(dire)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:780:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:796:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1031:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1047:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1222:5: error: Common realloc mistake: 'line' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:241:36: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:358:90: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:431:83: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:431:94: style: Parameter 'destination' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:544:31: style: Parameter 'pseudo_file' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:549:29: style: Variable 'command' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:549:46: style: Variable 'symlink' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:780:18: style: Variable 'pwuid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:796:17: style: Variable 'grgid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:892:14: style: Variable 'command' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:892:31: style: Variable 'symlink' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1031:18: style: Variable 'pwuid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:129:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1047:17: style: Variable 'grgid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:221:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/pseudo.c:1198:14: style: Variable 'err' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:401:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:270:3: error: Common realloc mistake: 'xattrs' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:398:4: error: Common realloc mistake: 'xattr_list' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:269:15: style: Local variable 'res' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:157:6: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:269:15: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:113:31: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:113:44: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:148:73: style: Parameter 'sBlk' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:388:16: portability: 'xattrs' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:388:30: portability: 'xattrs+xptr_offset' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:407:3: portability: '(void*)(xptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:407:3: portability: '(void*)(&entry)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:408:8: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:413:9: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:414:4: portability: '(void*)(xptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:414:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:415:9: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:424:8: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:433:9: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:435:9: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:438:22: portability: 'xattrs' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:438:47: portability: 'xattrs+get_xattr_block(start)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:439:4: portability: '(void*)(ool_xptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:439:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:440:35: portability: 'ool_xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:442:4: portability: '(void*)(xptr)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:442:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:443:31: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/read_xattrs.c:444:9: portability: 'xptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/reader.c:78:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:203:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:255:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:370:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:444:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:484:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:536:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:600:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/reader.c:694:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITIMER_REAL [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/restore.c:69:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/swap.c:27:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/swap.c:37:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/swap.c:49:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:71:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/swap.c:102:1: portability: 's' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:124:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/swap.c:102:1: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:224:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/swap.c:103:1: portability: 's' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/swap.c:103:1: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/swap.c:104:1: portability: 's' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/swap.c:104:1: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/reader.c:94:4: error: Common realloc mistake: 'pathname' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/reader.c:310:7: style: Local variable 'res' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/reader.c:241:20: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/reader.c:310:7: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/reader.c:655:16: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:196:16: style: Local variable 'buf' shadows outer argument [shadowArgument] squashfs-tools-4.6.1/squashfs-tools/sort.c:189:15: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/sort.c:196:16: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/sort.c:79:31: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:79:54: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/sort.c:106:70: style: Parameter 'source_path' can be declared as const array [constParameter] squashfs-tools-4.6.1/squashfs-tools/tar_xattr.c:104:5: error: syntax error [syntaxError] squashfs-tools-4.6.1/squashfs-tools/tar.c:127:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:247:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:288:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:310:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:734:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:951:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:1120:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:1193:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:1519:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/tar.c:1656:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-123.c:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-123.c:67:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:224:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:300:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-1234.c:39:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:45:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:91:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:319:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:394:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:536:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:537:6: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:538:19: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:552:2: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:555:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:565:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:566:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:567:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:55:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:87:4: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:109:5: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:155:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:180:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:213:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:246:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:329:5: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:353:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:496:26: style: Variable 'sBlk_3' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:533:33: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:536:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-1.c:538:8: style: Variable 'mkfs_str' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:655:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:656:6: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:657:19: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:671:2: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:675:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:695:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:696:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:697:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:698:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:631:27: style: Variable 'sBlk.s.inode_table_start' is reassigned a value before the old one has been used. [redundantAssignment] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:628:27: note: sBlk.s.inode_table_start is assigned squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:631:27: note: sBlk.s.inode_table_start is overwritten squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:127:7: style: Local variable 'length' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:73:6: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:127:7: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:50:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:111:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:142:4: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:164:29: style: Variable 'fragment_entry' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:185:4: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:222:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:247:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:272:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:308:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:341:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:423:5: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:447:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:611:27: style: Variable 'sBlk_3' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:652:33: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:655:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-2.c:657:8: style: Variable 'mkfs_str' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-34.c:42:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-34.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-34.c:88:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-34.c:124:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-34.c:156:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:43:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:63:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:353:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:416:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:82:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:274:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:368:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:745:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:746:6: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:747:19: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:756:2: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:780:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/xattr.h:150:30: style: Local variable 'id_table' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:31:22: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/xattr.h:150:30: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:96:7: style: Local variable 'length' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:63:6: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:96:7: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:722:30: style: Local variable 'id_table' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:31:22: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:722:30: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:120:34: style: Variable 'fragment_entry' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:742:33: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:745:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:747:8: style: Variable 'mkfs_str' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-4.c:285:9: style: Variable 'res' is assigned a value that is never used. [unreadVariable] squashfs-tools-4.6.1/squashfs-tools/unsquashfs.c:4054:23: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] squashfs-tools-4.6.1/squashfs-tools/tar.c:1375:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] squashfs-tools-4.6.1/squashfs-tools/tar.c:1406:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] squashfs-tools-4.6.1/squashfs-tools/tar.c:1003:3: error: Common realloc mistake: 'map' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/tar.c:1118:5: error: Common realloc mistake: 'map' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/tar.c:1374:12: warning: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/tar.c:1372:17: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/tar.c:1372:17: note: Assignment 'user=strndup(header.user,32)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/tar.c:1374:12: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/tar.c:1405:12: warning: If memory allocation fails, then there is a possible null pointer dereference: group [nullPointerOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/tar.c:1403:18: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/tar.c:1403:18: note: Assignment 'group=strndup(header.group,32)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/tar.c:1405:12: note: Null pointer dereference squashfs-tools-4.6.1/squashfs-tools/tar.c:1483:13: style: Local variable 'size' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/tar.c:1187:6: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/tar.c:1483:13: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/tar.c:180:40: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:281:57: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:619:15: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:724:21: style: Variable 'end' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:1139:69: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:1375:18: style: Variable 'pwuid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:1406:17: style: Variable 'grgid' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/tar.c:1455:10: style: Variable 'link' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:71:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:202:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:289:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:111:5: style: Condition '!has_xattrs(xattr)' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:111:16: note: Calling function 'has_xattrs' returns 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:111:5: note: Condition '!has_xattrs(xattr)' is always true squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:118:16: style: Condition 'xattr_list==NULL' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:117:24: note: Calling function 'get_xattr' returns 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:117:24: note: Assignment 'xattr_list=get_xattr(xattr,&count,&failed)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:118:16: note: Condition 'xattr_list==NULL' is always true squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:162:22: style: Condition '!has_xattrs(xattr)' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:162:33: note: Calling function 'has_xattrs' returns 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:162:22: note: Condition '!has_xattrs(xattr)' is always true squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:169:16: style: Condition 'xattr_list==NULL' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:168:24: note: Calling function 'get_xattr' returns 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:168:24: note: Assignment 'xattr_list=get_xattr(xattr,&count,&failed)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:169:16: note: Condition 'xattr_list==NULL' is always true squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:126:8: style: Local variable 'res' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:109:17: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:126:8: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:134:8: style: Local variable 'res' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:109:17: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquashfs_xattr.c:134:8: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/xattr.c:159:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:331:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:408:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:471:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:514:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:820:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:931:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:965:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:1065:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:1128:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xattr.c:1183:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:175:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:318:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:371:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:404:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:449:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_PRESET_DEFAULT [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:345:27: error: Shifting by a negative value is undefined behaviour [shiftNegative] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:328:6: style: Local variable 'dictionary_size' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:45:12: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:328:6: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:442:17: style: Variable 'selected' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:527:30: style: Parameter 'option' can be declared as pointer to const. However it seems that 'option_args' is a callback function, if 'option' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:547:17: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/xz_wrapper.c:527:30: note: Parameter 'option' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/xattr.c:891:17: style: Condition 'xattr_list==NULL' is always true [knownConditionTrueFalse] squashfs-tools-4.6.1/squashfs-tools/xattr.c:890:44: note: Calling function 'get_xattr' returns 0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:890:44: note: Assignment 'xattr_list=get_xattr(i,&count,&res)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:891:17: note: Condition 'xattr_list==NULL' is always true squashfs-tools-4.6.1/squashfs-tools/xattr.c:328:4: error: Common realloc mistake: 'xattr_table' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/xattr.c:352:4: error: Common realloc mistake: 'data_cache' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/xattr.c:468:2: error: Common realloc mistake: 'xattr_id_table' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/xattr.c:511:4: error: Common realloc mistake: 'xattr_table' nulled but not freed upon failure [memleakOnRealloc] squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assignment 'xattr->full_name=strdup(name)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: note: Null pointer addition squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:165:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:190:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:47:31: style: Parameter 'argv' can be declared as const array. However it seems that 'zstd_options' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:256:13: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:47:31: note: Parameter 'argv' can be declared as const array squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:243:30: style: Parameter 'option' can be declared as pointer to const. However it seems that 'option_args' is a callback function, if 'option' is declared with const you might also need to cast function pointer(s). [constParameterCallback] squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:261:17: note: You might need to cast the function pointer here squashfs-tools-4.6.1/squashfs-tools/zstd_wrapper.c:243:30: note: Parameter 'option' can be declared as pointer to const squashfs-tools-4.6.1/squashfs-tools/xattr.c:113:33: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:118:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:127:70: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:303:46: style: Parameter 'xattr' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:387:23: style: Variable 'xattr' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:388:23: style: Variable 'dup_xattr' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:1057:28: style: Variable 'source_ptr' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:1095:33: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:656:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:656:4: portability: '(void*)(xp)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:657:14: portability: 'xp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:673:3: portability: '(void*)(&entry)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:673:3: portability: '(void*)(xp)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:674:13: portability: 'xp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:680:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:680:4: portability: '(void*)(xp)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:681:4: portability: 'xp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:687:4: portability: '(void*)(&val)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:687:4: portability: '(void*)(xp)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:688:14: portability: 'xp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] squashfs-tools-4.6.1/squashfs-tools/xattr.c:891:28: error: Uninitialized variable: res [uninitvar] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:763:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:764:6: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:765:19: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:779:2: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:782:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:803:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:804:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:805:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:806:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:138:7: style: Local variable 'length' shadows outer variable [shadowVariable] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:91:6: note: Shadowed declaration squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:138:7: note: Shadow variable squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:68:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:123:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:153:4: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:169:29: style: Variable 'fragment_entry' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:190:4: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:237:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:258:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:279:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:310:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:342:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:372:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:445:5: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:469:6: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:570:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:720:3: style: Variable 's' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:760:33: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:763:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] squashfs-tools-4.6.1/squashfs-tools/unsquash-3.c:765:8: style: Variable 'mkfs_str' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assignment 'xattr->full_name=strdup(name)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: note: Null pointer addition head squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assuming allocation function fails squashfs-tools-4.6.1/squashfs-tools/xattr.c:129:27: note: Assignment 'xattr->full_name=strdup(name)', assigned value is 0 squashfs-tools-4.6.1/squashfs-tools/xattr.c:130:33: note: Null pointer addition DONE