2024-03-26 08:35 ftp://ftp.de.debian.org/debian/pool/main/z/zlib/zlib_1.3.dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 82f05c8 (2024-03-25 22:58:58 +0100) count: 109 110 elapsed-time: 7.4 10.1 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 7.36621s (avg. 7.36621s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 4.67726s (avg. 1.16931s - 4 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 2.10577s (avg. 0.701922s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.433356s (avg. 0.144452s - 3 result(s)) valueFlowSymbolic(tokenlist, symboldatabase, errorLogger, settings): 0.101352s (avg. 0.101352s - 1 result(s)) Overall time: 7.39245s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 10.0161s (avg. 10.0161s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 7.965s (avg. 1.99125s - 4 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.77024s (avg. 0.590081s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.165389s (avg. 0.0551297s - 3 result(s)) valueFlowUninit(tokenlist, settings): 0.065448s (avg. 0.021816s - 3 result(s)) Overall time: 10.0435s head results: zlib-1.3.dfsg/contrib/minizip/iowin32.c:92:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/iowin32.c:120:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/iowin32.c:143:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/iowin32.c:162:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/minizip.c:341:27: warning:inconclusive: Width 1 given in format string (no. 1) is smaller than destination buffer 'answer[128]'. [invalidScanfFormatWidth_smaller] zlib-1.3.dfsg/contrib/minizip/minizip.c:440:21: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/minizip.c:409:25: note: err is assigned zlib-1.3.dfsg/contrib/minizip/minizip.c:440:21: note: err is overwritten zlib-1.3.dfsg/contrib/minizip/minizip.c:309:13: style: Local variable 'i' shadows outer variable [shadowVariable] zlib-1.3.dfsg/contrib/minizip/minizip.c:239:9: note: Shadowed declaration zlib-1.3.dfsg/contrib/minizip/minizip.c:309:13: note: Shadow variable zlib-1.3.dfsg/contrib/minizip/minizip.c:219:16: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/miniunz.c:159:23: style: Condition 'mymkdir(buffer)==0' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/miniunz.c:127:13: note: Assignment 'ret=0', assigned value is 0 zlib-1.3.dfsg/contrib/minizip/miniunz.c:159:14: note: Calling function 'mymkdir' returns 0 zlib-1.3.dfsg/contrib/minizip/miniunz.c:159:23: note: Condition 'mymkdir(buffer)==0' is always true zlib-1.3.dfsg/contrib/minizip/miniunz.c:174:28: style: Condition 'mymkdir(buffer)==-1' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/miniunz.c:127:13: note: Assignment 'ret=0', assigned value is 0 zlib-1.3.dfsg/contrib/minizip/miniunz.c:174:19: note: Calling function 'mymkdir' returns 0 zlib-1.3.dfsg/contrib/minizip/miniunz.c:174:28: note: Condition 'mymkdir(buffer)==-1' is always false zlib-1.3.dfsg/contrib/minizip/miniunz.c:439:17: style: Condition 'fout' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/miniunz.c:379:27: warning:inconclusive: Width 1 given in format string (no. 1) is smaller than destination buffer 'answer[128]'. [invalidScanfFormatWidth_smaller] zlib-1.3.dfsg/contrib/minizip/miniunz.c:408:42: style: Variable '*(filename_withoutpath-1)' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/miniunz.c:406:42: note: *(filename_withoutpath-1) is assigned zlib-1.3.dfsg/contrib/minizip/miniunz.c:408:42: note: *(filename_withoutpath-1) is overwritten zlib-1.3.dfsg/contrib/minizip/miniunz.c:510:26: style: Parameter 'argv' can be declared as const array [constParameter] zlib-1.3.dfsg/contrib/minizip/unzip.c:510:25: style: Condition 'unz_copyright[0]!=' '' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/crc32.c:731:13: style: Condition '*(unsigned char*)&endian' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/crc32.c:730:18: note: Assignment 'endian=1', assigned value is 1 zlib-1.3.dfsg/crc32.c:731:13: note: Condition '*(unsigned char*)&endian' is always true zlib-1.3.dfsg/contrib/minizip/unzip.c:673:52: style:inconclusive: Function 'unzOpen2' argument 2 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. [funcArgNamesDifferent] zlib-1.3.dfsg/contrib/minizip/unzip.h:185:52: note: Function 'unzOpen2' argument 2 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. zlib-1.3.dfsg/contrib/minizip/unzip.c:673:52: note: Function 'unzOpen2' argument 2 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. zlib-1.3.dfsg/contrib/minizip/unzip.c:739:68: style:inconclusive: Function 'unzGetGlobalInfo' argument 2 names different: declaration 'pglobal_info' definition 'pglobal_info32'. [funcArgNamesDifferent] zlib-1.3.dfsg/contrib/minizip/unzip.h:206:54: note: Function 'unzGetGlobalInfo' argument 2 names different: declaration 'pglobal_info' definition 'pglobal_info32'. zlib-1.3.dfsg/contrib/minizip/unzip.c:739:68: note: Function 'unzGetGlobalInfo' argument 2 names different: declaration 'pglobal_info' definition 'pglobal_info32'. zlib-1.3.dfsg/contrib/minizip/unzip.c:493:55: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:673:52: style: Parameter 'pzlib_filefunc32_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:685:57: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:731:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1189:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1235:63: style: Parameter 'file_pos' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1529:32: style: Variable 'pfile_in_zip_read_info' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1776:32: style: Variable 'pfile_in_zip_read_info' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1794:32: style: Variable 'pfile_in_zip_read_info' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:1944:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/unzip.c:518:25: warning: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file [uninitvar] zlib-1.3.dfsg/contrib/minizip/unzip.c:692:38: note: Calling function 'unzOpenInternal', 2nd argument '&zlib_filefunc64_32_def_fill' value is zlib-1.3.dfsg/contrib/minizip/unzip.c:518:25: note: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file zlib-1.3.dfsg/contrib/minizip/unzip.c:979:22: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/unzip.c:987:14: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/unzip.c:990:14: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/contrib/minizip/unzip.c:1408:12: style: Variable 'err' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/examples/fitblk.c:62:23: style: Parameter 'why' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/zip.c:1172:26: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] zlib-1.3.dfsg/contrib/minizip/zip.c:1169:41: note: outer condition: zi->ci.method==Z_DEFLATED zlib-1.3.dfsg/contrib/minizip/zip.c:1172:26: note: identical inner condition: zi->ci.method==Z_DEFLATED zlib-1.3.dfsg/contrib/minizip/zip.c:637:23: style: Condition 'central_pos==0' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/zip.c:633:18: note: Assuming that condition 'central_pos>0' is not redundant zlib-1.3.dfsg/contrib/minizip/zip.c:637:23: note: Condition 'central_pos==0' is always true zlib-1.3.dfsg/contrib/minizip/zip.c:999:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/zip.c:998:11: note: err is assigned zlib-1.3.dfsg/contrib/minizip/zip.c:999:11: note: err is overwritten zlib-1.3.dfsg/contrib/minizip/zip.c:1001:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/zip.c:999:11: note: err is assigned zlib-1.3.dfsg/contrib/minizip/zip.c:1001:11: note: err is overwritten zlib-1.3.dfsg/contrib/minizip/zip.c:1002:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/zip.c:1001:11: note: err is assigned zlib-1.3.dfsg/contrib/minizip/zip.c:1002:11: note: err is overwritten zlib-1.3.dfsg/contrib/minizip/zip.c:1487:36: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] zlib-1.3.dfsg/contrib/minizip/zip.c:1482:53: note: err is assigned zlib-1.3.dfsg/contrib/minizip/zip.c:1487:36: note: err is overwritten zlib-1.3.dfsg/contrib/minizip/zip.c:886:112: style:inconclusive: Function 'zipOpen2' argument 4 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. [funcArgNamesDifferent] zlib-1.3.dfsg/contrib/minizip/zip.h:140:52: note: Function 'zipOpen2' argument 4 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. zlib-1.3.dfsg/contrib/minizip/zip.c:886:112: note: Function 'zipOpen2' argument 4 names different: declaration 'pzlib_filefunc_def' definition 'pzlib_filefunc32_def'. zlib-1.3.dfsg/contrib/minizip/zip.c:816:117: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/zip.c:886:112: style: Parameter 'pzlib_filefunc32_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/zip.c:897:117: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/zip.c:826:29: warning: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file [uninitvar] zlib-1.3.dfsg/contrib/minizip/zip.c:904:58: note: Calling function 'zipOpen3', 4th argument '&zlib_filefunc64_32_def_fill' value is zlib-1.3.dfsg/contrib/minizip/zip.c:826:29: note: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file zlib-1.3.dfsg/contrib/minizip/zip.c:1627:11: style: Variable 'p' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/examples/gzappend.c:93:22: style: Parameter 'msg1' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzappend.c:93:34: style: Parameter 'msg2' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzappend.c:127:20: style: Variable 'start' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/examples/gzappend.c:472:9: style: Variable 'argc' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/examples/gun.c:535:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zlib-1.3.dfsg/examples/gun.c:517:39: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzjoin.c:209:9: warning: Either the condition 'in==NULL' is redundant or there is possible null pointer dereference: in. [nullPointerRedundantCheck] zlib-1.3.dfsg/examples/gzjoin.c:293:12: note: Assuming that condition 'in==NULL' is not redundant zlib-1.3.dfsg/examples/gzjoin.c:295:12: note: Calling function 'gzhead', 1st argument 'in' value is 0 zlib-1.3.dfsg/examples/gzjoin.c:209:9: note: Null pointer dereference zlib-1.3.dfsg/examples/gzjoin.c:66:22: style: Parameter 'why1' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzjoin.c:66:34: style: Parameter 'why2' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gznorm.c:118:24: style: Variable 'put' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:1769:20: style: Condition 'len==left' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/deflate.c:1767:13: note: len is assigned '(left)>(have)?(have):(left)' here. zlib-1.3.dfsg/deflate.c:1769:20: note: Condition 'len==left' is always false zlib-1.3.dfsg/deflate.c:524:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:612:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:854:20: style: Variable 'str' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:1277:20: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:1343:11: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/deflate.c:1354:21: style: Variable 'strend' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/examples/zpipe.c:70:24: error: Uninitialized variable: out [uninitvar] zlib-1.3.dfsg/deflate.c:1994:9: style: Variable 'bflush' is assigned a value that is never used. [unreadVariable] zlib-1.3.dfsg/examples/gzlog.c:377:5: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] zlib-1.3.dfsg/examples/gzlog.c:1005:29: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] zlib-1.3.dfsg/examples/gzlog.c:910:27: style:inconclusive: Function 'gzlog_compress' argument 1 names different: declaration 'log' definition 'logd'. [funcArgNamesDifferent] zlib-1.3.dfsg/examples/gzlog.h:85:27: note: Function 'gzlog_compress' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:910:27: note: Function 'gzlog_compress' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:997:24: style:inconclusive: Function 'gzlog_write' argument 1 names different: declaration 'log' definition 'logd'. [funcArgNamesDifferent] zlib-1.3.dfsg/examples/gzlog.h:77:24: note: Function 'gzlog_write' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:997:24: note: Function 'gzlog_write' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:1044:24: style:inconclusive: Function 'gzlog_close' argument 1 names different: declaration 'log' definition 'logd'. [funcArgNamesDifferent] zlib-1.3.dfsg/examples/gzlog.h:89:24: note: Function 'gzlog_close' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:1044:24: note: Function 'gzlog_close' argument 1 names different: declaration 'log' definition 'logd'. zlib-1.3.dfsg/examples/gzlog.c:437:32: style: Parameter 'log' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzlog.c:718:51: style: Parameter 'record' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/examples/gzlog.c:867:25: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/gzread.c:484:24: style: Variable 'src' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/gzread.c:502:20: style: Variable 'eol' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/infback.c:251:24: style: Variable 'from' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inffast.c:53:32: style: Variable 'last' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inffast.c:55:24: style: Variable 'beg' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inffast.c:56:24: style: Variable 'end' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inftrees.c:32:68: style: Parameter 'lens' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/inflate.c:95:31: style: Variable 'state' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inflate.c:599:24: style: Variable 'from' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inflate.c:1432:31: style: Variable 'state' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inflate.c:1440:31: style: Variable 'state' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inflate.c:1522:31: style: Variable 'state' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/inflate.c:1399:36: warning: Uninitialized variable: buf [uninitvar] zlib-1.3.dfsg/inflate.c:1393:28: note: Assuming condition is false zlib-1.3.dfsg/inflate.c:1399:36: note: Uninitialized variable: buf zlib-1.3.dfsg/test/minigzip.c:393:26: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:188:5: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] zlib-1.3.dfsg/test/infcover.c:196:5: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] zlib-1.3.dfsg/test/infcover.c:221:9: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] zlib-1.3.dfsg/test/infcover.c:176:32: style: Parameter 'strm' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:184:31: style: Parameter 'strm' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:184:43: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:186:22: style: Variable 'zone' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/test/infcover.c:192:31: style: Parameter 'strm' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:192:43: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:194:22: style: Variable 'zone' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/test/infcover.c:284:22: style: Parameter 'hex' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/test/infcover.c:463:22: style: Parameter 'desc' can be declared as pointer to const. However it seems that 'push' is a callback function, if 'desc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zlib-1.3.dfsg/test/infcover.c:563:48: note: You might need to cast the function pointer here zlib-1.3.dfsg/test/infcover.c:463:22: note: Parameter 'desc' can be declared as pointer to const zlib-1.3.dfsg/trees.c:202:57: style: Parameter 'bl_count' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/trees.c:507:50: style: Parameter 'tree' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/trees.c:858:62: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/trees.c:955:43: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zlib-1.3.dfsg/contrib/minizip/mztools.c:191:25: style: Condition 'comsize>0' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/mztools.c:144:27: note: Assignment 'comment=""', assigned value is "" zlib-1.3.dfsg/contrib/minizip/mztools.c:145:25: note: Assignment 'comsize=(int)strlen(comment)', assigned value is 0 zlib-1.3.dfsg/contrib/minizip/mztools.c:191:25: note: Condition 'comsize>0' is always false zlib-1.3.dfsg/contrib/minizip/mztools.c:237:21: style: Condition 'comsize>0' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/mztools.c:219:23: note: Assignment 'comment=""', assigned value is "" zlib-1.3.dfsg/contrib/minizip/mztools.c:220:21: note: Assignment 'comsize=(int)strlen(comment)', assigned value is 0 zlib-1.3.dfsg/contrib/minizip/mztools.c:237:21: note: Condition 'comsize>0' is always false zlib-1.3.dfsg/contrib/minizip/mztools.c:143:16: style: Local variable 'header' shadows outer variable [shadowVariable] zlib-1.3.dfsg/contrib/minizip/mztools.c:38:10: note: Shadowed declaration zlib-1.3.dfsg/contrib/minizip/mztools.c:143:16: note: Shadow variable zlib-1.3.dfsg/contrib/minizip/mztools.c:218:12: style: Local variable 'header' shadows outer variable [shadowVariable] zlib-1.3.dfsg/contrib/minizip/mztools.c:38:10: note: Shadowed declaration zlib-1.3.dfsg/contrib/minizip/mztools.c:218:12: note: Shadow variable zlib-1.3.dfsg/contrib/minizip/mztools.c:144:17: style: Variable 'comment' can be declared as pointer to const [constVariablePointer] zlib-1.3.dfsg/contrib/minizip/mztools.c:219:13: style: Variable 'comment' can be declared as pointer to const [constVariablePointer] diff: 2.13.0 zlib-1.3.dfsg/contrib/minizip/miniunz.c:612:28: style: Condition 'opt_do_extract==1' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/miniunz.c:518:24: note: Assignment 'opt_do_extract=1', assigned value is 1 zlib-1.3.dfsg/contrib/minizip/miniunz.c:603:11: note: Assuming condition is false zlib-1.3.dfsg/contrib/minizip/miniunz.c:612:28: note: Condition 'opt_do_extract==1' is always true 2.13.0 zlib-1.3.dfsg/contrib/minizip/mztools.c:168:24: style: Condition 'fnsize>0' is always true [knownConditionTrueFalse] zlib-1.3.dfsg/contrib/minizip/mztools.c:69:20: note: Assuming that condition 'fnsize>0' is not redundant zlib-1.3.dfsg/contrib/minizip/mztools.c:168:24: note: Condition 'fnsize>0' is always true 2.13.0 zlib-1.3.dfsg/deflate.c:1776:12: style: Condition 'last' is always false [knownConditionTrueFalse] zlib-1.3.dfsg/deflate.c:1723:9: note: Assuming that condition 'last' is not redundant zlib-1.3.dfsg/deflate.c:1728:32: note: Assuming condition is false zlib-1.3.dfsg/deflate.c:1776:12: note: Condition 'last' is always false head zlib-1.3.dfsg/examples/gznorm.c:118:24: style: Variable 'put' can be declared as pointer to const [constVariablePointer] 2.13.0 zlib-1.3.dfsg/examples/zran.c:192:40: error: Uninitialized variable: last [uninitvar] head zlib-1.3.dfsg/inflate.c:1399:36: warning: Uninitialized variable: buf [uninitvar] zlib-1.3.dfsg/inflate.c:1393:28: note: Assuming condition is false zlib-1.3.dfsg/inflate.c:1399:36: note: Uninitialized variable: buf head zlib-1.3.dfsg/test/infcover.c:176:32: style: Parameter 'strm' can be declared as pointer to const [constParameterPointer] DONE