2025-05-09 03:08 ftp://ftp.de.debian.org/debian/pool/main/z/zip/zip_3.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 66c9938 (2025-05-08 13:55:11 +0200) count: 736 733 elapsed-time: 18.1 18.9 head-timing-info: old-timing-info: head results: zip30/amiga/amiga.c:98:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_ABORT [valueFlowBailoutIncompleteVar] zip30/amiga/amiga.c:104:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pr_Result2 [valueFlowBailoutIncompleteVar] zip30/amiga/amiga.c:129:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMF_PUBLIC [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:54:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MISS [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:142:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:168:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:262:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:357:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exts2swap [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:442:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:504:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zip30/acorn/acornzip.c:568:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:60:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MISS [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_PARMS [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:246:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:337:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/amiga/amigazip.c:433:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/acorn/riscos.c:365:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/acorn/riscos.c:374:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] zip30/acorn/riscos.c:242:6: style: Redundant assignment of 'file' to itself. [selfAssignment] zip30/acorn/riscos.c:243:6: style: Redundant assignment of 'mode' to itself. [selfAssignment] zip30/acorn/riscos.c:92:20: style: Parameter 'dirname' can be declared as pointer to const [constParameterPointer] zip30/acorn/riscos.c:97:12: style: Variable 'er' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:193:21: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/acorn/riscos.c:198:12: style: Variable 'er' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:247:24: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] zip30/acorn/riscos.c:254:26: style: Parameter 'envstr' can be declared as pointer to const [constParameterPointer] zip30/acorn/riscos.c:256:8: style: Variable 'envptr' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:270:17: style: Variable 'extptr' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:271:17: style: Variable 'suffptr' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:297:8: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] zip30/acorn/riscos.c:327:30: error: Uninitialized variable: pref [uninitvar] zip30/acorn/riscos.c:242:6: style: Variable 'file' is assigned a value that is never used. [unreadVariable] zip30/acorn/riscos.c:243:6: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] zip30/amiga/amigazip.c:462:10: error: Buffer is accessed out of bounds: buf1 [bufferAccessOutOfBounds] zip30/amiga/amigazip.c:36:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/amiga/amigazip.c:357:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/acorn/acornzip.c:33:8: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/amiga/amigazip.c:401:17: style: Same expression on both sides of '-'. [duplicateExpression] zip30/acorn/acornzip.c:464:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/amiga/amigazip.c:163:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/amiga/amigazip.c:279:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/amiga/amigazip.c:306:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/amiga/amigazip.c:374:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/amiga/amigazip.c:375:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/amiga/amigazip.c:406:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/acorn/acornzip.c:164:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/acorn/acornzip.c:244:7: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] zip30/acorn/acornzip.c:333:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/acorn/acornzip.c:411:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/amiga/stat.c:67:1: portability: Omitted return type of function 'stat' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] zip30/amiga/stat.c:77:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHARED_LOCK [valueFlowBailoutIncompleteVar] zip30/amiga/stat.c:142:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IREAD [valueFlowBailoutIncompleteVar] zip30/amiga/stat.c:153:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIR [valueFlowBailoutIncompleteVar] zip30/amiga/stat.c:182:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIR [valueFlowBailoutIncompleteVar] zip30/amiga/filedate.c:236:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DateStamp [valueFlowBailoutIncompleteVar] zip30/amiga/filedate.c:336:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESS_READ [valueFlowBailoutIncompleteVar] zip30/amiga/filedate.c:538:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StandardPacket [valueFlowBailoutIncompleteVar] zip30/amiga/stat.c:119:21: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] zip30/amiga/filedate.c:253:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/amiga/filedate.c:234:12: style: Parameter 'u' can be declared as const array [constParameter] zip30/amiga/filedate.c:246:16: style: Variable 'ltm' can be declared as pointer to const [constVariablePointer] zip30/amiga/filedate.c:525:7: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] zip30/amiga/filedate.c:312:21: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] zip30/aosvs/aosvs.c:86:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/aosvs/aosvs.c:196:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/aosvs/aosvs.c:301:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable label [valueFlowBailoutIncompleteVar] zip30/aosvs/aosvs.c:378:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable $MXPL [valueFlowBailoutIncompleteVar] zip30/aosvs/aosvs.c:559:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIT1 [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:61:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FA_LABEL [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable linkput [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:105:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable volume_label [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:247:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MISS [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:321:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_OK [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:368:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:469:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pathput [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:549:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:645:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/api.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/api.c:225:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/api.c:309:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/api.c:678:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPVER_LEN [valueFlowBailoutIncompleteVar] zip30/aosvs/aosvs.c:70:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/aosvs/aosvs.c:276:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/aosvs/aosvs.c:331:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/aosvs/aosvs.c:82:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/aosvs/aosvs.c:254:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/aosvs/aosvs.c:268:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/aosvs/aosvs.c:280:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/aosvs/aosvs.c:348:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/aosvs/aosvs.c:519:17: style: Unused variable: mm [unusedVariable] zip30/aosvs/aosvs.c:519:21: style: Unused variable: dd [unusedVariable] zip30/aosvs/aosvs.c:519:25: style: Unused variable: yy [unusedVariable] zip30/api.c:92:16: style: Condition 'szRootDir!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:290:16: style: Condition 'szRootDir!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:581:19: style: Condition 'szIncludeList!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:591:19: style: Condition 'szExcludeList!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:604:16: style: Condition 'szTempDir!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:616:16: style: Condition 'szRootDir!=NULL' is always true [knownConditionTrueFalse] zip30/api.c:136:10: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:200:10: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:516:18: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:531:18: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:554:18: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:567:18: error: Common realloc mistake: 'argVee' nulled but not freed upon failure [memleakOnRealloc] zip30/api.c:101:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str1 [nullPointerOutOfMemory] zip30/api.c:88:23: note: Assuming allocation function fails zip30/api.c:88:8: note: Assignment 'str1=(char*)malloc(lstrlen(s)+4)', assigned value is 0 zip30/api.c:101:15: note: Null pointer dereference zip30/api.c:103:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str1 [nullPointerOutOfMemory] zip30/api.c:88:23: note: Assuming allocation function fails zip30/api.c:88:8: note: Assignment 'str1=(char*)malloc(lstrlen(s)+4)', assigned value is 0 zip30/api.c:103:23: note: Null pointer dereference zip30/api.c:112:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str1 [nullPointerOutOfMemory] zip30/api.c:88:23: note: Assuming allocation function fails zip30/api.c:88:8: note: Assignment 'str1=(char*)malloc(lstrlen(s)+4)', assigned value is 0 zip30/api.c:112:23: note: Null pointer dereference zip30/api.c:112:14: style: Variable 'str2' is reassigned a value before the old one has been used. [redundantAssignment] zip30/api.c:101:6: note: str2 is assigned zip30/api.c:112:14: note: str2 is overwritten zip30/atheos/atheos.c:277:6: error: Unmatched '('. Configuration: '__GNUC__=1'. [syntaxError] zip30/api.c:218:39: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] zip30/api.c:218:50: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] zip30/beos/beos.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:201:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:300:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:364:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOK [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:531:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_LOGIC [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:610:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EB_HEADSIZE [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:692:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EB_HEADSIZE [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:831:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_LOGIC [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:862:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:914:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/cmsmvs/cms.c:31:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MISS [valueFlowBailoutIncompleteVar] zip30/cmsmvs/cmsmvs.c:83:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/cmsmvs/cmsmvs.c:191:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mesg [valueFlowBailoutIncompleteVar] zip30/cmsmvs/cmsmvs.c:241:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aflag [valueFlowBailoutIncompleteVar] zip30/atari/atari.c:38:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/atari/atari.c:307:32: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/atari/atari.c:514:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/atari/atari.c:573:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/atari/atari.c:558:7: note: Memory pointed to by 'name' is freed twice. zip30/atari/atari.c:573:3: note: Memory pointed to by 'name' is freed twice. zip30/atari/atari.c:622:17: style: Same expression on both sides of '-'. [duplicateExpression] zip30/cmsmvs/cmsmvs.c:177:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/cmsmvs/cmsmvs.c:386:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zip30/cmsmvs/cmsmvs.c:386:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zip30/cmsmvs/cmsmvs.c:386:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zip30/cmsmvs/cmsmvs.c:168:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/cmsmvs/cmsmvs.c:308:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/cmsmvs/cmsmvs.c:368:11: style: Variable 'compiler' can be declared as pointer to const [constVariablePointer] zip30/cmsmvs/cmsmvs.c:369:11: style: Variable 'platform' can be declared as pointer to const [constVariablePointer] zip30/atari/atari.c:79:13: style: Variable 'dtaptr' can be declared as pointer to const [constVariablePointer] zip30/atari/atari.c:225:29: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:281:20: style: Variable 'entp' can be declared as pointer to const [constVariablePointer] zip30/atari/atari.c:364:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/atari/atari.c:491:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:504:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:518:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:586:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:587:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/atari/atari.c:627:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/cmsmvs/cmsmvs.c:80:16: style: Variable 'mem' is assigned a value that is never used. [unreadVariable] zip30/cmsmvs/cmsmvs.c:81:16: style: Variable 'ext' is assigned a value that is never used. [unreadVariable] zip30/atari/atari.c:454:13: style: Unused variable: p [unusedVariable] zip30/cmsmvs/mvs.h:35:1: debug: Failed to parse 'typedef _Packed struct { unsigned short int count ; char rest [ 254 ] ; } RECORD ;'. The checking continues anyway. [simplifyTypedef] zip30/cmsmvs/mvs.c:128:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/beos/beos.c:99:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/beos/beos.c:263:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/beos/beos.c:321:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/beos/beos.c:318:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/beos/beos.c:308:7: note: Memory pointed to by 'name' is freed twice. zip30/beos/beos.c:318:3: note: Memory pointed to by 'name' is freed twice. zip30/beos/beos.c:827:12: style: Redundant assignment of 'z_utim' to itself. [selfAssignment] zip30/beos/beos.c:490:12: style: Variable 'retval' is reassigned a value before the old one has been used. [redundantAssignment] zip30/beos/beos.c:427:16: note: retval is assigned zip30/beos/beos.c:490:12: note: retval is overwritten zip30/crc32.c:689:29: style: Local variable 'crc_32_tab' shadows outer variable [shadowVariable] zip30/zip.h:306:27: note: Shadowed declaration zip30/crc32.c:689:29: note: Shadow variable zip30/beos/beos.c:111:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/beos/beos.c:231:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/beos/beos.c:247:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/beos/beos.c:269:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/beos/beos.c:881:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/beos/beos.c:441:24: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] zip30/beos/beos.c:490:12: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] zip30/beos/beos.c:827:12: style: Variable 'z_utim' is assigned a value that is never used. [unreadVariable] zip30/cmsmvs/mvs.c:38:10: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] zip30/cmsmvs/mvs.c:33:22: note: Assuming allocation function fails zip30/cmsmvs/mvs.c:33:22: note: Assignment 'new=malloc(sizeof(struct dirent))', assigned value is 0 zip30/cmsmvs/mvs.c:38:10: note: Null pointer dereference zip30/cmsmvs/mvs.c:39:18: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] zip30/cmsmvs/mvs.c:33:22: note: Assuming allocation function fails zip30/cmsmvs/mvs.c:33:22: note: Assignment 'new=malloc(sizeof(struct dirent))', assigned value is 0 zip30/cmsmvs/mvs.c:39:18: note: Null pointer dereference zip30/cmsmvs/mvs.c:40:10: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] zip30/cmsmvs/mvs.c:33:22: note: Assuming allocation function fails zip30/cmsmvs/mvs.c:33:22: note: Assignment 'new=malloc(sizeof(struct dirent))', assigned value is 0 zip30/cmsmvs/mvs.c:40:10: note: Null pointer dereference zip30/cmsmvs/mvs.c:41:30: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] zip30/cmsmvs/mvs.c:33:22: note: Assuming allocation function fails zip30/cmsmvs/mvs.c:33:22: note: Assignment 'new=malloc(sizeof(struct dirent))', assigned value is 0 zip30/cmsmvs/mvs.c:41:30: note: Null pointer dereference zip30/cmsmvs/mvs.c:106:6: style:inconclusive: Function 'readd' argument 1 names different: declaration 'dirp' definition 'd'. [funcArgNamesDifferent] zip30/cmsmvs/mvs.h:28:27: note: Function 'readd' argument 1 names different: declaration 'dirp' definition 'd'. zip30/cmsmvs/mvs.c:106:6: note: Function 'readd' argument 1 names different: declaration 'dirp' definition 'd'. zip30/cmsmvs/mvs.c:16:41: style: Parameter 'recptr' can be declared as pointer to const [constParameterPointer] zip30/cmsmvs/mvs.c:124:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/cmsmvs/mvs.c:20:28: style: Unused variable: alias [unusedVariable] zip30/cmsmvs/mvs.c:20:35: style: Unused variable: ttrn [unusedVariable] zip30/deflate.c:368:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/deflate.c:602:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:49:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:89:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:183:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pathput [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:246:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable isstdin [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:328:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:340:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/human68k/human68k.c:208:16: error: Returning pointer to local variable 'x' that will be invalid when returning. [returnDanglingLifetime] zip30/human68k/human68k.c:208:17: note: Passed to 'strcpy'. zip30/human68k/human68k.c:205:9: note: Variable created here. zip30/human68k/human68k.c:208:16: note: Returning pointer to local variable 'x' that will be invalid when returning. zip30/human68k/human68k.c:34:23: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/human68k/human68k.c:222:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/human68k/human68k.c:276:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/human68k/human68k.c:258:7: note: Memory pointed to by 'name' is freed twice. zip30/human68k/human68k.c:276:3: note: Memory pointed to by 'name' is freed twice. zip30/human68k/human68k.c:312:17: style: Same expression on both sides of '-'. [duplicateExpression] zip30/human68k/human68k.c:85:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/human68k/human68k.c:201:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/human68k/human68k.c:212:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/human68k/human68k.c:226:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/human68k/human68k.c:289:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/human68k/human68k.c:290:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/human68k/human68k.c:317:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/fileio.c:1236:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zip30/fileio.c:2120:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/fileio.c:2324:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/macos/source/extrafld.c:115:5: error: There is an unknown macro here somewhere. Configuration is required. If Assert_it is a macro then please configure it. [unknownMacro] zip30/macos/source/getenv.c:109:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/macos/source/getenv.c:158:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/macos/source/getenv.c:230:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/macos/source/getenv.c:341:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/getenv.c:381:1: warning: Return value of function getenv() is not used. [ignoredReturnValue] zip30/macos/source/getenv.c:311:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zip30/macos/source/getenv.c:105:58: style: Parameter 'terms' can be declared as pointer to const [constParameterPointer] zip30/deflate.c:444:23: style: Variable 'strend' can be declared as pointer to const [constVariablePointer] zip30/macos/source/helpers.c:114:37: error: syntax error [syntaxError] zip30/macos/source/macopen.c:291:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] zip30/macos/source/macos.c:384:3: error: There is an unknown macro here somewhere. Configuration is required. If AssertStr is a macro then please configure it. [unknownMacro] zip30/macos/source/macopen.c:294:77: style: Clarify calculation precedence for '+' and '?'. [clarifyCalculation] zip30/macos/source/macopen.c:315:36: style: Variable 'isbinary' is assigned a value that is never used. [unreadVariable] zip30/macos/source/macopen.c:331:19: style: Variable 'errno' is assigned a value that is never used. [unreadVariable] zip30/macos/source/macopen.c:341:15: style: Variable 'errno' is assigned a value that is never used. [unreadVariable] zip30/macos/source/macopen.c:351:19: style: Variable 'errno' is assigned a value that is never used. [unreadVariable] zip30/macos/source/macopen.c:315:27: style: Variable 'isbinary' is assigned a value that is never used. [unreadVariable] zip30/macos/source/mactime.c:151:9: style: Redundant assignment of 'mactime' to itself. [selfAssignment] zip30/macos/source/mactime.c:148:39: style:inconclusive: Function 'GetGMToffsetMac' argument 1 names different: declaration 'macftime' definition 'mactime'. [funcArgNamesDifferent] zip30/macos/source/mactime.h:58:39: note: Function 'GetGMToffsetMac' argument 1 names different: declaration 'macftime' definition 'mactime'. zip30/macos/source/mactime.c:148:39: note: Function 'GetGMToffsetMac' argument 1 names different: declaration 'macftime' definition 'mactime'. zip30/macos/source/mactime.c:187:36: style:inconclusive: Function 'gmtime' argument 1 names different: declaration 't' definition 'timer'. [funcArgNamesDifferent] zip30/macos/source/mactime.c:75:36: note: Function 'gmtime' argument 1 names different: declaration 't' definition 'timer'. zip30/macos/source/mactime.c:187:36: note: Function 'gmtime' argument 1 names different: declaration 't' definition 'timer'. zip30/macos/source/mactime.c:195:39: style:inconclusive: Function 'localtime' argument 1 names different: declaration 't' definition 'timer'. [funcArgNamesDifferent] zip30/macos/source/mactime.c:76:39: note: Function 'localtime' argument 1 names different: declaration 't' definition 'timer'. zip30/macos/source/mactime.c:195:39: note: Function 'localtime' argument 1 names different: declaration 't' definition 'timer'. zip30/macos/source/mactime.c:223:24: style:inconclusive: Function 'time' argument 1 names different: declaration 't' definition 'time'. [funcArgNamesDifferent] zip30/macos/source/mactime.c:78:24: note: Function 'time' argument 1 names different: declaration 't' definition 'time'. zip30/macos/source/mactime.c:223:24: note: Function 'time' argument 1 names different: declaration 't' definition 'time'. zip30/macos/source/mactime.c:151:9: style: Variable 'mactime' is assigned a value that is never used. [unreadVariable] zip30/macos/source/macstuff.c:125:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:151:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gestaltFSAttr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:184:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gestaltQuickTimeVersion [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:255:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fsRtParID [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:294:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:338:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FSSpec [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:452:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:523:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:665:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:723:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:797:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable paramErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:820:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:924:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:952:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:980:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1064:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1101:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1150:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1223:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1266:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GetVolParmsInfoBuffer [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1318:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1401:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1450:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fsRtDirID [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1481:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gestaltFSAttr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1540:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1663:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable paramErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1680:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/macstuff.c:1699:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/pathname.c:318:1: error: There is an unknown macro here somewhere. Configuration is required. If AssertStr is a macro then please configure it. [unknownMacro] zip30/macos/source/recurse.c:131:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CInfoPBPtr [valueFlowBailoutIncompleteVar] zip30/macos/source/recurse.c:173:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noErr [valueFlowBailoutIncompleteVar] zip30/macos/source/recurse.c:224:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noisy [valueFlowBailoutIncompleteVar] zip30/macos/source/recurse.c:402:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ioDirMask [valueFlowBailoutIncompleteVar] zip30/macos/source/recurse.c:122:17: error: Buffer is accessed out of bounds: buffer2 [bufferAccessOutOfBounds] zip30/macos/source/recurse.c:270:5: style: Condition '!firstMatch' is always true [knownConditionTrueFalse] zip30/macos/source/recurse.c:265:21: note: Assignment 'firstMatch=false', assigned value is 0 zip30/macos/source/recurse.c:270:5: note: Condition '!firstMatch' is always true zip30/macos/source/recurse.c:235:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] zip30/macos/source/recurse.c:237:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] zip30/macos/source/recurse.c:237:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] zip30/macos/source/recurse.c:162:39: style:inconclusive: Function 'RecurseDirectory' argument 2 names different: declaration 'dirID' definition 'thedirID'. [funcArgNamesDifferent] zip30/macos/source/recurse.h:34:39: note: Function 'RecurseDirectory' argument 2 names different: declaration 'dirID' definition 'thedirID'. zip30/macos/source/recurse.c:162:39: note: Function 'RecurseDirectory' argument 2 names different: declaration 'dirID' definition 'thedirID'. zip30/macos/source/recurse.c:263:25: style:inconclusive: Function 'IsZipFile' argument 1 names different: declaration 'name' definition 'filen'. [funcArgNamesDifferent] zip30/macos/source/helpers.h:31:25: note: Function 'IsZipFile' argument 1 names different: declaration 'name' definition 'filen'. zip30/macos/source/recurse.c:263:25: note: Function 'IsZipFile' argument 1 names different: declaration 'name' definition 'filen'. zip30/macos/source/recurse.c:263:25: style: Parameter 'filen' can be declared as pointer to const [constParameterPointer] zip30/macos/source/recurse.c:60:29: style: struct member 'RecurseGlobals::FullPathLen' is never used. [unusedStructMember] zip30/macos/source/recurse.c:396:46: style: Variable 'hasDataFork' is assigned a value that is never used. [unreadVariable] zip30/macos/source/recurse.c:397:29: style: Variable 'hasResourceFork' is assigned a value that is never used. [unreadVariable] zip30/macos/source/unixlike.c:81:5: error: There is an unknown macro here somewhere. Configuration is required. If AssertStr is a macro then please configure it. [unknownMacro] zip30/macos/source/macstuff.c:1102:13: style: Variable 'endVolArray' can be declared as pointer to const [constVariablePointer] zip30/macos/source/macstuff.c:1325:57: error: Uninitialized variable: desktopName [uninitvar] zip30/msdos/msdos.c:125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:160:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FA_LABEL [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MISS [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:283:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable volume_label [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:338:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:504:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pathput [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:597:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:961:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __VERSION__ [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:65:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:102:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:255:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:331:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:413:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:527:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:560:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:665:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:734:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:851:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __VERSION__ [valueFlowBailoutIncompleteVar] zip30/novell/Netware.c:54:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/novell/Netware.c:172:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/novell/Netware.c:214:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/novell/Netware.c:565:12: warning: If memory allocation fails, then there is a possible null pointer dereference: sztUpper [nullPointerOutOfMemory] zip30/novell/Netware.c:564:22: note: Assuming allocation function fails zip30/novell/Netware.c:564:22: note: Assignment 'sztUpper=malloc(strlen(t)+10)', assigned value is 0 zip30/novell/Netware.c:565:12: note: Null pointer dereference zip30/novell/Netware.c:568:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sztUpper [nullPointerOutOfMemory] zip30/novell/Netware.c:564:22: note: Assuming allocation function fails zip30/novell/Netware.c:564:22: note: Assignment 'sztUpper=malloc(strlen(t)+10)', assigned value is 0 zip30/novell/Netware.c:568:17: note: Null pointer dereference zip30/novell/Netware.c:784:10: warning: Either the condition 't!=NULL' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] zip30/novell/Netware.c:774:9: note: Assuming that condition 't!=NULL' is not redundant zip30/novell/Netware.c:784:10: note: Null pointer dereference zip30/novell/Netware.c:820:17: style: Same expression on both sides of '-'. [duplicateExpression] zip30/novell/Netware.c:270:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] zip30/novell/Netware.c:131:10: style: Variable 'psz' can be declared as pointer to const [constVariablePointer] zip30/novell/Netware.c:409:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/novell/Netware.c:606:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:626:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:634:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:704:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:788:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:797:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:798:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/novell/Netware.c:284:19: error: Uninitialized variable: a [uninitvar] zip30/novell/Netware.c:599:17: error: Uninitialized variable: dosflag [uninitvar] zip30/novell/Netware.c:134:8: style: Unused variable: r [unusedVariable] zip30/novell/Netware.c:252:8: style: Unused variable: v [unusedVariable] zip30/novell/Netware.c:542:7: style: Variable 'dosflag' is not assigned a value. [unassignedVariable] zip30/novell/signal.c:21:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] zip30/os2/os2.c:62:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable volume_label [valueFlowBailoutIncompleteVar] zip30/os2/os2.c:198:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/os2/os2.c:295:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/os2/os2.c:406:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/msdos/msdos.c:560:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/msdos/msdos.c:625:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/msdos/msdos.c:606:7: note: Memory pointed to by 'name' is freed twice. zip30/msdos/msdos.c:625:3: note: Memory pointed to by 'name' is freed twice. zip30/msdos/msdos.c:674:17: style: Same expression on both sides of '-'. [duplicateExpression] zip30/msdos/msdos.c:118:9: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:333:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/msdos/msdos.c:527:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:541:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:565:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:638:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:647:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:648:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/msdos/msdos.c:783:12: style: Variable 'var' can be declared as pointer to const [constVariablePointer] zip30/msdos/msdos.c:807:30: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] zip30/os2/os2acl.c:207:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] zip30/os2/os2acl.c:238:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CCHMAXPATH [valueFlowBailoutIncompleteVar] zip30/os2/os2acl.c:322:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACL_BUFFERSIZE [valueFlowBailoutIncompleteVar] zip30/os2/os2acl.c:342:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_INVALID_PARAMETER [valueFlowBailoutIncompleteVar] zip30/os2/os2acl.c:290:12: style: Local variable 'ai' shadows outer variable [shadowVariable] zip30/os2/os2acl.c:101:17: note: Shadowed declaration zip30/os2/os2acl.c:290:12: note: Shadow variable zip30/os2/os2acl.c:332:12: style: Local variable 'ai' shadows outer variable [shadowVariable] zip30/os2/os2acl.c:101:17: note: Shadowed declaration zip30/os2/os2acl.c:332:12: note: Shadow variable zip30/os2/os2acl.c:290:12: style: Variable 'ai' can be declared as pointer to const [constVariablePointer] zip30/os2/os2acl.c:291:12: style: Variable 'al' can be declared as pointer to const [constVariablePointer] zip30/os2/os2acl.c:330:43: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] zip30/os2/os2acl.c:334:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] zip30/os2/os2acl.c:334:15: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] zip30/qdos/qdos.c:641:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zip30/qdos/qdos.c:827:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/qdos/qdos.c:829:13: error: Memory leak: lq [memleak] zip30/qdos/qdos.c:859:6: error: Memory leak: lq [memleak] zip30/qdos/qdos.c:859:6: error: Memory leak: cq [memleak] zip30/qdos/qdos.c:629:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] zip30/qdos/qdos.c:632:9: style: Unused variable: n [unusedVariable] zip30/os2/os2.c:43:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/os2/os2.c:194:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/os2/os2.c:350:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/os2/os2.c:373:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/os2/os2.c:454:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/qdos/qfileio.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/qdos/qfileio.c:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/qdos/qfileio.c:179:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/qdos/qfileio.c:144:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/qdos/qfileio.c:200:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/qdos/qfileio.c:197:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/qdos/qfileio.c:187:7: note: Memory pointed to by 'name' is freed twice. zip30/qdos/qfileio.c:197:3: note: Memory pointed to by 'name' is freed twice. zip30/tandem/tandem.c:157:39: error: syntax error [syntaxError] zip30/qdos/qfileio.c:136:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/qdos/qfileio.c:148:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/qdos/qfileio.c:218:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/qdos/qfileio.c:42:9: style: Unused variable: a [unusedVariable] zip30/tandem/tanzip.c:84:29: error: syntax error [syntaxError] zip30/theos/_isatty.c:22:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/theos/_rename.c:17:0: error: failed to expand '_sys_rename', Wrong number of parameters for macro '_sys_rename'. [preprocessorErrorDirective] zip30/theos/_rename.c:17:25: error: failed to expand '_sys_rename', Wrong number of parameters for macro '_sys_rename'. [preprocessorErrorDirective] zip30/theos/_setargv.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zip30/theos/_setargv.c:72:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _FDB_READ_PROTECT [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:75:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:122:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _FDB_STAT_DIRECTORY [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:247:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:336:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOPEN_MAX [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:379:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_DISK [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:417:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IFLIB [valueFlowBailoutIncompleteVar] zip30/theos/_stat.c:450:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] zip30/theos/_setargv.c:44:56: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zip30/theos/_setargv.c:71:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zip30/theos/_setargv.c:71:19: style: Variable 'r' can be declared as pointer to const [constVariablePointer] zip30/theos/_stat.c:116:22: warning:inconclusive: Logical conjunction always evaluates to false: drive >= 'a' && drive <= 'Z'. [incorrectLogicOperator] zip30/theos/_stat.c:274:13: style: Condition 'p' is always false [knownConditionTrueFalse] zip30/theos/_stat.c:261:15: note: Assuming that condition 'p==NULL' is not redundant zip30/theos/_stat.c:274:13: note: Condition 'p' is always false zip30/theos/_stat.c:460:20: warning: Either the condition 'dirpath' is redundant or there is possible null pointer dereference: dirpath. [nullPointerRedundantCheck] zip30/theos/_stat.c:453:9: note: Assuming that condition 'dirpath' is not redundant zip30/theos/_stat.c:460:20: note: Null pointer dereference zip30/theos/_stat.c:375:26: style: Variable 'ucb' can be declared as pointer to const [constVariablePointer] zip30/theos/_stat.c:377:9: style: Variable 'ucb' is assigned a value that is never used. [unreadVariable] zip30/theos/_stat.c:451:20: style: Unused variable: dir [unusedVariable] zip30/theos/theos.c:112:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] zip30/theos/theos.c:157:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zfiles [valueFlowBailoutIncompleteVar] zip30/theos/theos.c:337:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/theos/theos.c:426:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/theos/theos.c:518:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zip30/timezone.c:491:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] zip30/timezone.c:662:13: style: Condition 'ltm==(struct tm*)NULL' is always false [knownConditionTrueFalse] zip30/timezone.c:499:17: error: Common realloc mistake: 'old_TZstring' nulled but not freed upon failure [memleakOnRealloc] zip30/timezone.c:480:11: style: Variable 'TZstring' can be declared as pointer to const [constVariablePointer] zip30/theos/theos.c:92:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/theos/theos.c:391:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/theos/theos.c:449:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/theos/theos.c:446:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/theos/theos.c:436:7: note: Memory pointed to by 'name' is freed twice. zip30/theos/theos.c:446:3: note: Memory pointed to by 'name' is freed twice. zip30/theos/theos.c:100:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zip30/theos/theos.c:109:21: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] zip30/theos/theos.c:141:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/theos/theos.c:367:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/theos/theos.c:383:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/theos/theos.c:395:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:197:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/tops20/tops20.c:281:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/tops20/tops20.c:439:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/tops20/tops20.c:491:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable translate_eol [valueFlowBailoutIncompleteVar] zip30/tops20/tops20.c:538:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/tops20/tops20.c:138:30: portability: Undefined behaviour, pointer arithmetic 'fname-1' is out of bounds. [pointerOutOfBounds] zip30/tops20/tops20.c:267:28: portability: Undefined behaviour, pointer arithmetic 'fname-1' is out of bounds. [pointerOutOfBounds] zip30/tops20/tops20.c:404:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/tops20/tops20.c:461:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/tops20/tops20.c:458:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/tops20/tops20.c:448:7: note: Memory pointed to by 'name' is freed twice. zip30/tops20/tops20.c:458:3: note: Memory pointed to by 'name' is freed twice. zip30/tops20/tops20.c:58:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:135:15: style: Variable 'fname' can be declared as const array [constVariable] zip30/tops20/tops20.c:263:13: style: Variable 'fname' can be declared as const array [constVariable] zip30/tops20/tops20.c:312:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zip30/tops20/tops20.c:363:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:394:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:408:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:519:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/tops20/tops20.c:143:37: error: Uninitialized variable: fname [uninitvar] zip30/tops20/tops20.c:141:9: note: Assuming condition is false zip30/tops20/tops20.c:143:37: note: Uninitialized variable: fname zip30/tops20/tops20.c:275:35: error: Uninitialized variable: fname [uninitvar] zip30/tops20/tops20.c:270:7: note: Assuming condition is false zip30/tops20/tops20.c:275:35: note: Uninitialized variable: fname zip30/ttyio.c:311:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECHO [valueFlowBailoutIncompleteVar] zip30/ttyio.c:325:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECHO [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:239:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:359:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:468:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:579:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:1030:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __VERSION__ [valueFlowBailoutIncompleteVar] zip30/unix/unix.c:103:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zip30/unix/unix.c:322:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/unix/unix.c:382:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/unix/unix.c:378:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/unix/unix.c:367:7: note: Memory pointed to by 'name' is freed twice. zip30/unix/unix.c:378:3: note: Memory pointed to by 'name' is freed twice. zip30/unix/unix.c:470:5: error: Memory leak: extra [memleak] zip30/unix/unix.c:115:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/unix/unix.c:286:7: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/unix/unix.c:306:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/unix/unix.c:328:9: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/unix/unix.c:690:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/trees.c:1426:11: style:inconclusive: Function 'copy_block' argument 1 names different: declaration 'buf' definition 'block'. [funcArgNamesDifferent] zip30/trees.c:444:27: note: Function 'copy_block' argument 1 names different: declaration 'buf' definition 'block'. zip30/trees.c:1426:11: note: Function 'copy_block' argument 1 names different: declaration 'buf' definition 'block'. zip30/trees.c:604:19: style: Parameter 'tree' can be declared as pointer to const [constParameterPointer] zip30/trees.c:643:15: style: Variable 'extra' can be declared as pointer to const [constVariablePointer] zip30/trees.c:1198:19: style: Parameter 'ltree' can be declared as pointer to const [constParameterPointer] zip30/trees.c:1199:19: style: Parameter 'dtree' can be declared as pointer to const [constParameterPointer] zip30/vms/cmdline.c:374:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DSC$K_DTYPE_T [valueFlowBailoutIncompleteVar] zip30/vms/cmdline.c:1590:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DSC$K_DTYPE_T [valueFlowBailoutIncompleteVar] zip30/vms/cmdline.c:1694:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DSC$K_DTYPE_T [valueFlowBailoutIncompleteVar] zip30/vms/cmdline.c:1735:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIB$SIG_TO_RET [valueFlowBailoutIncompleteVar] zip30/vms/cmdline.c:1790:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable copyright [valueFlowBailoutIncompleteVar] zip30/util.c:1034:63: style: Condition 'c<=31' is always true [knownConditionTrueFalse] zip30/util.c:1031:15: note: Assuming that condition 'c>=32' is not redundant zip30/util.c:1034:63: note: Condition 'c<=31' is always true zip30/util.c:835:12: warning: If memory allocation fails, then there is a possible null pointer dereference: bufptr [nullPointerOutOfMemory] zip30/util.c:832:20: note: Assuming allocation function fails zip30/util.c:832:20: note: Assignment 'bufptr=malloc(1+strlen(envptr))', assigned value is 0 zip30/util.c:835:12: note: Null pointer dereference zip30/util.c:846:11: warning: If memory allocation fails, then there is a possible null pointer dereference: argv++ [nullPointerOutOfMemory] zip30/util.c:838:27: note: Assuming allocation function fails zip30/util.c:838:12: note: Assignment 'argv=(char**)malloc((argc+*Pargc+1)*sizeof(char*))', assigned value is 0 zip30/util.c:846:11: note: Null pointer dereference zip30/util.c:888:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: bufptr [nullPointerOutOfMemory] zip30/util.c:832:20: note: Assuming allocation function fails zip30/util.c:832:20: note: Assignment 'bufptr=malloc(1+strlen(envptr))', assigned value is 0 zip30/util.c:888:23: note: Null pointer dereference zip30/util.c:846:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] zip30/util.c:838:27: note: Assuming allocation function fails zip30/util.c:838:12: note: Assignment 'argv=(char**)malloc((argc+*Pargc+1)*sizeof(char*))', assigned value is 0 zip30/util.c:846:11: note: Null pointer addition zip30/util.c:435:32: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] zip30/util.c:440:26: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] zip30/util.c:1262:12: style: Redundant initialization for 'multchar'. The initialized value is overwritten before it is read. [redundantInitialization] zip30/util.c:1227:17: note: multchar is initialized zip30/util.c:1262:12: note: multchar is overwritten zip30/util.c:1357:14: style: Variable '*outstring' is reassigned a value before the old one has been used. [redundantAssignment] zip30/util.c:1298:14: note: *outstring is assigned zip30/util.c:1357:14: note: *outstring is overwritten zip30/util.c:1421:9: style: Local variable 'a' shadows outer variable [shadowVariable] zip30/util.c:566:20: note: Shadowed declaration zip30/util.c:1421:9: note: Shadow variable zip30/util.c:808:11: style: Parameter 'envstr' can be declared as pointer to const [constParameterPointer] zip30/util.c:809:11: style: Parameter 'envstr2' can be declared as pointer to const [constParameterPointer] zip30/util.c:908:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zip30/util.c:967:12: style: Parameter 'argcp' can be declared as pointer to const [constParameterPointer] zip30/util.c:1105:9: style: Parameter 'pre' can be declared as pointer to const [constParameterPointer] zip30/util.c:1106:9: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] zip30/util.c:1154:9: style: Parameter 'pre' can be declared as pointer to const [constParameterPointer] zip30/util.c:1155:9: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] zip30/util.c:1224:9: style: Parameter 'numstring' can be declared as pointer to const [constParameterPointer] zip30/vms/cmdline.c:474:12: error: Memory leak: the_cmd_line [memleak] zip30/vms/cmdline.c:472:16: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:471:16: note: status is assigned zip30/vms/cmdline.c:472:16: note: status is overwritten zip30/vms/cmdline.c:962:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:952:16: note: status is assigned zip30/vms/cmdline.c:962:12: note: status is overwritten zip30/vms/cmdline.c:986:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:965:16: note: status is assigned zip30/vms/cmdline.c:986:12: note: status is overwritten zip30/vms/cmdline.c:1032:21: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1010:20: note: status is assigned zip30/vms/cmdline.c:1032:21: note: status is overwritten zip30/vms/cmdline.c:1093:21: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1083:20: note: status is assigned zip30/vms/cmdline.c:1093:21: note: status is overwritten zip30/vms/cmdline.c:1151:16: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1138:20: note: status is assigned zip30/vms/cmdline.c:1151:16: note: status is overwritten zip30/vms/cmdline.c:1297:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1279:20: note: status is assigned zip30/vms/cmdline.c:1297:12: note: status is overwritten zip30/vms/cmdline.c:1431:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1417:16: note: status is assigned zip30/vms/cmdline.c:1431:12: note: status is overwritten zip30/vms/cmdline.c:1458:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1445:16: note: status is assigned zip30/vms/cmdline.c:1458:12: note: status is overwritten zip30/vms/cmdline.c:1490:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1477:16: note: status is assigned zip30/vms/cmdline.c:1490:12: note: status is overwritten zip30/vms/cmdline.c:1708:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] zip30/vms/cmdline.c:1696:12: note: status is assigned zip30/vms/cmdline.c:1708:12: note: status is overwritten zip30/vms/cmdline.c:523:15: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] zip30/vms/cmdline.c:1598:15: style: Variable 'src' can be declared as pointer to const [constVariablePointer] zip30/vms/vms_msg_gen.c:22:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] zip30/vms/cmdline.c:1674:14: style: struct member 'quadword::high' is never used. [unusedStructMember] zip30/vms/vms_msg_gen.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VMS_MSG_IDENT [valueFlowBailoutIncompleteVar] zip30/vms/vms_msg_gen.c:29:11: style: Variable 'sev_str' can be declared as const array [constVariable] zip30/vms/vms_msg_gen.c:40:11: style: Variable 'text1' can be declared as const array [constVariable] zip30/vms/cmdline.c:1685:15: style: struct member 'tim::hour' is never used. [unusedStructMember] zip30/vms/cmdline.c:1686:15: style: struct member 'tim::minute' is never used. [unusedStructMember] zip30/vms/cmdline.c:1687:15: style: struct member 'tim::second' is never used. [unusedStructMember] zip30/vms/cmdline.c:1688:15: style: struct member 'tim::hundred' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:239:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATR$C_RECATTR [valueFlowBailoutIncompleteVar] zip30/vms/vmsmunch.c:214:21: style: union member 'Anonymous11::fch' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:215:16: style: union member 'Anonymous11::dummy' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:226:26: style: union member 'Anonymous12::value' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:232:9: style: union member 'Anonymous12::bits' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:228:18: style: struct member 'Anonymous13::system' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:229:18: style: struct member 'Anonymous13::owner' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:230:18: style: struct member 'Anonymous13::group' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:231:18: style: struct member 'Anonymous13::world' is never used. [unusedStructMember] zip30/vms/vmsmunch.c:256:36: style: Variable 'string' is assigned a value that is never used. [unreadVariable] zip30/vms/vmszip.c:314:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cc$rms_nam [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:527:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DVI$C_ACP_F11V2 [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:555:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cc$rms_fab [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:667:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RMS$_NORMAL [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:705:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:736:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zlist [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:849:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dosify [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:1305:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vms_case_2 [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:1322:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZCONST [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:1378:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZE_MEM [valueFlowBailoutIncompleteVar] zip30/vms/vmszip.c:1400:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] zip30/vms/vmszip.c:1397:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/vms/vmszip.c:1387:7: note: Memory pointed to by 'name' is freed twice. zip30/vms/vmszip.c:1397:3: note: Memory pointed to by 'name' is freed twice. zip30/vms/vmszip.c:184:24: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:184:34: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:494:32: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:598:36: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:1094:13: style: Variable 'f' can be declared as pointer to const [constVariablePointer] zip30/vms/vmszip.c:1110:20: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:1346:21: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/vms/vmszip.c:847:7: style: Unused variable: ods_level [unusedVariable] zip30/vms/vmszip.c:1119:9: style: Unused variable: endp [unusedVariable] zip30/vms/vmszip.c:1121:9: style: Unused variable: versionp [unusedVariable] zip30/win32/win32.c:179:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_READONLY [valueFlowBailoutIncompleteVar] zip30/win32/win32.c:223:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_ARCHIVE [valueFlowBailoutIncompleteVar] zip30/win32/win32.c:247:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_ARCHIVE [valueFlowBailoutIncompleteVar] zip30/win32/win32.c:674:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] zip30/win32/win32.c:1115:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] zip30/win32/win32.c:1257:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __VERSION__ [valueFlowBailoutIncompleteVar] zip30/fileio.c:3879:17: style: Array index 'argnum' is used before limits check. [arrayIndexThenCheck] zip30/fileio.c:1101:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/fileio.c:1106:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/fileio.c:1162:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/fileio.c:1495:10: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] zip30/fileio.c:1849:10: warning: Identical condition 'des', second condition is always false [identicalConditionAfterEarlyExit] zip30/fileio.c:1846:9: note: If condition 'des' is true, the function will return/exit zip30/fileio.c:1849:10: note: Testing identical condition 'des' zip30/fileio.c:2679:54: style: Condition 'ask_for_split_write_path(current_disk)==0' is always false [knownConditionTrueFalse] zip30/fileio.c:2679:39: note: Calling function 'ask_for_split_write_path' returns 1 zip30/fileio.c:2679:54: note: Condition 'ask_for_split_write_path(current_disk)==0' is always false zip30/fileio.c:3977:32: style: Condition 'clen==1' is always true [knownConditionTrueFalse] zip30/fileio.c:3973:10: note: Assignment 'clen=1', assigned value is 1 zip30/fileio.c:3977:32: note: Condition 'clen==1' is always true zip30/fileio.c:4692:33: style: Condition 'first_nonoption_arg>-1' is always true [knownConditionTrueFalse] zip30/fileio.c:4685:34: note: Assuming that condition 'first_nonoption_arg>-1' is not redundant zip30/fileio.c:4692:33: note: Condition 'first_nonoption_arg>-1' is always true zip30/fileio.c:2317:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zip30/fileio.c:959:9: error: Memory leak: oname [memleak] zip30/fileio.c:1071:3: error: Memory leak: oname [memleak] zip30/fileio.c:2052:10: warning: Either the condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2049:50: note: Assuming that condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is not redundant zip30/fileio.c:2052:10: note: Null pointer dereference zip30/fileio.c:2055:19: warning: Either the condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2049:50: note: Assuming that condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is not redundant zip30/fileio.c:2055:19: note: Null pointer dereference zip30/fileio.c:2191:38: warning: Either the condition 'archive_name==NULL' is redundant or there is possible null pointer dereference: archive_name. [nullPointerRedundantCheck] zip30/fileio.c:2186:26: note: Assuming that condition 'archive_name==NULL' is not redundant zip30/fileio.c:2191:38: note: Null pointer dereference zip30/fileio.c:2223:14: warning: Either the condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2220:54: note: Assuming that condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is not redundant zip30/fileio.c:2223:14: note: Null pointer dereference zip30/fileio.c:2225:23: warning: Either the condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2220:54: note: Assuming that condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is not redundant zip30/fileio.c:2225:23: note: Null pointer dereference zip30/fileio.c:2226:13: warning: Either the condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2220:54: note: Assuming that condition '(split_dir=malloc(strlen(in_path)+40))==NULL' is not redundant zip30/fileio.c:2226:13: note: Null pointer dereference zip30/fileio.c:2292:10: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2289:51: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2292:10: note: Null pointer dereference zip30/fileio.c:2295:19: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2289:51: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2295:19: note: Null pointer dereference zip30/fileio.c:2296:9: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2289:51: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2296:9: note: Null pointer dereference zip30/fileio.c:2357:39: warning: Either the condition 'split_name==NULL' is redundant or there is possible null pointer dereference: split_name. [nullPointerRedundantCheck] zip30/fileio.c:2352:24: note: Assuming that condition 'split_name==NULL' is not redundant zip30/fileio.c:2357:39: note: Null pointer dereference zip30/fileio.c:2385:14: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2382:55: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2385:14: note: Null pointer dereference zip30/fileio.c:2387:23: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2382:55: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2387:23: note: Null pointer dereference zip30/fileio.c:2388:13: warning: Either the condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is redundant or there is possible null pointer dereference: split_dir. [nullPointerRedundantCheck] zip30/fileio.c:2382:55: note: Assuming that condition '(split_dir=malloc(strlen(out_path)+40))==NULL' is not redundant zip30/fileio.c:2388:13: note: Null pointer dereference zip30/fileio.c:2396:14: warning: Either the condition '(split_name=malloc(strlen(out_path)+1))==NULL' is redundant or there is possible null pointer dereference: split_name. [nullPointerRedundantCheck] zip30/fileio.c:2393:55: note: Assuming that condition '(split_name=malloc(strlen(out_path)+1))==NULL' is not redundant zip30/fileio.c:2396:14: note: Null pointer dereference zip30/fileio.c:2439:12: warning: Either the condition '(split_path=malloc(strlen(base_path)+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2436:54: note: Assuming that condition '(split_path=malloc(strlen(base_path)+1))==NULL' is not redundant zip30/fileio.c:2439:12: note: Null pointer dereference zip30/fileio.c:2466:10: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2462:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2466:10: note: Null pointer dereference zip30/fileio.c:2467:3: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2462:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2467:3: note: Null pointer dereference zip30/fileio.c:2469:10: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2462:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2469:10: note: Null pointer dereference zip30/fileio.c:2527:10: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2523:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2527:10: note: Null pointer dereference zip30/fileio.c:2528:3: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2523:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2528:3: note: Null pointer dereference zip30/fileio.c:2530:10: warning: Either the condition '(split_path=malloc(path_len+1))==NULL' is redundant or there is possible null pointer dereference: split_path. [nullPointerRedundantCheck] zip30/fileio.c:2523:43: note: Assuming that condition '(split_path=malloc(path_len+1))==NULL' is not redundant zip30/fileio.c:2530:10: note: Null pointer dereference zip30/fileio.c:3887:11: warning: Either the condition '(newarg=(char*)malloc(strlen(arg)+1))==NULL' is redundant or there is possible null pointer dereference: newarg. [nullPointerRedundantCheck] zip30/fileio.c:3884:52: note: Assuming that condition '(newarg=(char*)malloc(strlen(arg)+1))==NULL' is not redundant zip30/fileio.c:3887:11: note: Null pointer dereference zip30/fileio.c:4200:10: warning: Either the condition '(arg=(char*)malloc(strlen(args[argnum])+1))==NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] zip30/fileio.c:4197:56: note: Assuming that condition '(arg=(char*)malloc(strlen(args[argnum])+1))==NULL' is not redundant zip30/fileio.c:4200:10: note: Null pointer dereference zip30/fileio.c:4203:17: warning: Either the condition '(arg=(char*)malloc(strlen(args[argnum])+1))==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] zip30/fileio.c:4197:56: note: Assuming that condition '(arg=(char*)malloc(strlen(args[argnum])+1))==NULL' is not redundant zip30/fileio.c:4203:17: note: Null pointer addition zip30/fileio.c:1440:12: style: Redundant initialization for 't'. The initialized value is overwritten before it is read. [redundantInitialization] zip30/fileio.c:1332:11: note: t is initialized zip30/fileio.c:1440:12: note: t is overwritten zip30/fileio.c:1794:26: style: Variable 'data_start' is reassigned a value before the old one has been used. [redundantAssignment] zip30/fileio.c:1788:26: note: data_start is assigned zip30/fileio.c:1794:26: note: data_start is overwritten zip30/fileio.c:2225:14: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] zip30/fileio.c:2189:13: note: i is assigned zip30/fileio.c:2225:14: note: i is overwritten zip30/fileio.c:2387:14: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] zip30/fileio.c:2355:13: note: i is assigned zip30/fileio.c:2387:14: note: i is overwritten zip30/fileio.c:4019:10: style: Variable 'clen' is reassigned a value before the old one has been used. [redundantAssignment] zip30/fileio.c:4014:14: note: clen is assigned zip30/fileio.c:4019:10: note: clen is overwritten zip30/fileio.c:3840:12: style:inconclusive: Function 'insert_arg' argument 1 names different: declaration 'args' definition 'pargs'. [funcArgNamesDifferent] zip30/zip.h:1071:16: note: Function 'insert_arg' argument 1 names different: declaration 'args' definition 'pargs'. zip30/fileio.c:3840:12: note: Function 'insert_arg' argument 1 names different: declaration 'args' definition 'pargs'. zip30/fileio.c:3842:8: style:inconclusive: Function 'insert_arg' argument 3 names different: declaration 'insert_at' definition 'at_arg'. [funcArgNamesDifferent] zip30/zip.h:1071:16: note: Function 'insert_arg' argument 3 names different: declaration 'insert_at' definition 'at_arg'. zip30/fileio.c:3842:8: note: Function 'insert_arg' argument 3 names different: declaration 'insert_at' definition 'at_arg'. zip30/fileio.c:260:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zip30/fileio.c:1092:9: style: Parameter 't' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:1097:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] zip30/fileio.c:1181:9: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:1189:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:1189:11: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:1307:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:2414:9: style: Parameter 'base_path' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:2485:9: style: Parameter 'base_path' can be declared as pointer to const [constParameterPointer] zip30/fileio.c:3943:9: style: Variable 'shortopt' can be declared as pointer to const [constVariablePointer] zip30/fileio.c:3945:9: style: Variable 'nextchar' can be declared as pointer to const [constVariablePointer] zip30/win32/win32zip.c:180:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] zip30/win32/win32zip.c:281:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_HIDDEN [valueFlowBailoutIncompleteVar] zip30/win32/win32zip.c:1104:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_DIRECTORY [valueFlowBailoutIncompleteVar] zip30/fileio.c:1586:20: style: Variable 'des_start' is assigned a value that is never used. [unreadVariable] zip30/win32/win32zip.c:1412:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_longname_ea [valueFlowBailoutIncompleteVar] zip30/win32/win32zip.c:1641:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/fileio.c:2259:19: style: Variable 'is_readable' is assigned a value that is never used. [unreadVariable] zip30/fileio.c:3956:12: style: Variable 'nextchar' is assigned a value that is never used. [unreadVariable] zip30/fileio.c:4042:14: style: Variable 'clen' is assigned a value that is never used. [unreadVariable] zip30/fileio.c:4078:12: style: Variable 'clen' is assigned a value that is never used. [unreadVariable] zip30/win32/win32.c:613:12: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] zip30/win32/win32.c:609:10: note: outer condition: dot zip30/win32/win32.c:613:12: note: identical inner condition: dot zip30/win32/win32.c:663:7: style:inconclusive: Function 'IsFileNameValid' argument 1 names different: declaration 'name' definition 'x'. [funcArgNamesDifferent] zip30/win32/win32zip.h:24:27: note: Function 'IsFileNameValid' argument 1 names different: declaration 'name' definition 'x'. zip30/win32/win32.c:663:7: note: Function 'IsFileNameValid' argument 1 names different: declaration 'name' definition 'x'. zip30/win32/win32.c:179:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] zip30/win32/win32.c:180:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] zip30/win32/win32.c:181:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] zip30/win32/win32.c:182:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] zip30/win32/win32.c:183:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] zip30/win32/win32.c:582:15: style: Variable 'invalid' can be declared as const array [constVariable] zip30/win32/win32.c:649:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] zip30/windll/windll.c:88:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPTR [valueFlowBailoutIncompleteVar] zip30/windll/windll.c:123:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMEM_MOVEABLE [valueFlowBailoutIncompleteVar] zip30/windll/windll.c:149:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMEM_MOVEABLE [valueFlowBailoutIncompleteVar] zip30/windll/example.c:109:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPTR [valueFlowBailoutIncompleteVar] zip30/windll/windll.c:124:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:130:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:133:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:150:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:156:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:159:1: error: Buffer is accessed out of bounds: szBuffer [bufferAccessOutOfBounds] zip30/windll/windll.c:108:2: warning: If memory allocation fails, then there is a possible null pointer dereference: zcomment [nullPointerOutOfMemory] zip30/windll/windll.c:107:18: note: Assuming allocation function fails zip30/windll/windll.c:107:18: note: Assignment 'zcomment=malloc(1)', assigned value is 0 zip30/windll/windll.c:108:2: note: Null pointer dereference zip30/windll/windll.c:127:12: error: va_list 'argptr' was opened but not closed by va_end(). [va_end_missing] zip30/windll/windll.c:153:12: error: va_list 'argptr' was opened but not closed by va_end(). [va_end_missing] zip30/windll/example.c:360:33: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'DummyPrint' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zip30/windll/example.c:122:29: note: You might need to cast the function pointer here zip30/windll/example.c:360:33: note: Parameter 'buf' can be declared as pointer to const zip30/windll/example.c:290:18: warning: Uninitialized variable: szFileList [uninitvar] zip30/windll/example.c:286:6: note: Assuming condition is false zip30/windll/example.c:290:18: note: Uninitialized variable: szFileList zip30/windll/example.c:298:5: warning: Uninitialized variable: index [uninitvar] zip30/windll/example.c:286:6: note: Assuming condition is false zip30/windll/example.c:290:9: note: Assignment 'index=(char**)szFileList', assigned value is zip30/windll/example.c:298:5: note: Uninitialized variable: index zip30/zipcloak.c:384:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/zipcloak.c:55:9: style: Parameter 'out_path' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1594:3: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zip30/win32/win32zip.c:1674:3: error: Memory pointed to by 'name' is freed twice. [doubleFree] zip30/win32/win32zip.c:1642:7: note: Memory pointed to by 'name' is freed twice. zip30/win32/win32zip.c:1674:3: note: Memory pointed to by 'name' is freed twice. zip30/win32/win32zip.c:1634:10: warning: Either the condition '(name=malloc(len+1))==NULL' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] zip30/win32/win32zip.c:1631:32: note: Assuming that condition '(name=malloc(len+1))==NULL' is not redundant zip30/win32/win32zip.c:1634:10: note: Null pointer dereference zip30/win32/win32zip.c:1635:7: warning: Either the condition '(name=malloc(len+1))==NULL' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] zip30/win32/win32zip.c:1631:32: note: Assuming that condition '(name=malloc(len+1))==NULL' is not redundant zip30/win32/win32zip.c:1635:7: note: Null pointer dereference zip30/win32/win32zip.c:1635:35: warning: Either the condition '(name=malloc(len+1))==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] zip30/win32/win32zip.c:1631:32: note: Assuming that condition '(name=malloc(len+1))==NULL' is not redundant zip30/win32/win32zip.c:1635:35: note: Null pointer addition zip30/win32/win32zip.c:1086:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zip30/win32/win32zip.c:1539:9: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1574:9: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1599:9: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1949:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1950:12: style: Parameter 'z_utim' can be declared as pointer to const [constParameterPointer] zip30/win32/win32zip.c:1971:7: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] zip30/zipnote.c:347:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/zipnote.c:451:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zip30/zip.c:355:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zip30/zip.c:1269:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zip30/zip.c:2480:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/zipnote.c:182:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] zip30/zipnote.c:664:3: error: Used file that is not opened. [useClosedFile] zip30/zipnote.c:598:29: warning: If memory allocation fails, then there is a possible null pointer dereference: zcomment [nullPointerOutOfMemory] zip30/zipnote.c:598:22: note: Assuming allocation function fails zip30/zipnote.c:598:22: note: Assignment 'zcomment=malloc(1)', assigned value is 0 zip30/zipnote.c:598:29: note: Null pointer dereference zip30/zipnote.c:73:9: style: Parameter 'out_path' can be declared as pointer to const [constParameterPointer] zip30/zipnote.c:182:4: style: Variable 's' is assigned a value that is never used. [unreadVariable] zip30/zip.c:462:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] zip30/zip.c:3595:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/zip.c:3598:45: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] zip30/zip.c:4003:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/zip.c:4004:39: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] zip30/zip.c:6009:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zip30/zip.c:6010:37: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] zip30/zip.c:1484:38: style: Condition 'check_unzip_version("unzip")==0' is always false [knownConditionTrueFalse] zip30/zip.c:1484:28: note: Calling function 'check_unzip_version' returns 1 zip30/zip.c:1484:38: note: Condition 'check_unzip_version("unzip")==0' is always false zip30/zip.c:1702:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:1702:7: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:1706:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:1706:7: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:3444:11: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] zip30/zip.c:3997:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:5994:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zip.c:1430:11: style: Redundant assignment of 'zippath' to itself. [selfAssignment] zip30/zip.c:1795:9: style: Redundant assignment of 'zfn' to itself. [selfAssignment] zip30/zip.c:3562:12: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] zip30/zip.c:3559:7: note: p is assigned zip30/zip.c:3562:12: note: p is overwritten zip30/zip.c:4289:12: style: Variable 'z->len' is assigned an expression that holds the same value. [redundantAssignment] zip30/zip.c:4273:13: note: usize is assigned 'z->len' here. zip30/zip.c:4289:12: note: Variable 'z->len' is assigned an expression that holds the same value. zip30/zip.c:4309:12: style: Variable 'z->len' is assigned an expression that holds the same value. [redundantAssignment] zip30/zip.c:4273:13: note: usize is assigned 'z->len' here. zip30/zip.c:4309:12: note: Variable 'z->len' is assigned an expression that holds the same value. zip30/zip.c:1537:29: style: Local variable 'filter' shadows outer function [shadowFunction] zip30/zip.h:680:8: note: Shadowed declaration zip30/zip.c:1537:29: note: Shadow variable zip30/zip.c:3555:11: style: Local variable 'p' shadows outer variable [shadowVariable] zip30/zip.c:2141:9: note: Shadowed declaration zip30/zip.c:3555:11: note: Shadow variable zip30/zip.c:4076:19: style: Local variable 'n' shadows outer variable [shadowVariable] zip30/zip.c:2138:11: note: Shadowed declaration zip30/zip.c:4076:19: note: Shadow variable zip30/zip.c:1047:9: style: Variable 'envptr' can be declared as pointer to const [constVariablePointer] zip30/zip.c:1283:9: style: Parameter 'unzippath' can be declared as pointer to const [constParameterPointer] zip30/zip.c:1327:9: style: Parameter 'zipname' can be declared as pointer to const [constParameterPointer] zip30/zipsplit.c:496:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] zip30/zip.c:1434:11: style: Variable 'here' can be declared as pointer to const [constVariablePointer] zip30/zipsplit.c:585:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zip30/zip.c:1647:9: style: Parameter 'filearg' can be declared as pointer to const [constParameterPointer] zip30/zip.c:1792:11: style: Variable 'prompt' can be declared as pointer to const [constVariablePointer] zip30/zip.c:1846:9: style: Parameter 'out_path' can be declared as pointer to const [constParameterPointer] zip30/zip.c:3556:11: style: Variable 'lastp' can be declared as pointer to const [constVariablePointer] zip30/zip.c:3591:18: style: Variable 'now' can be declared as pointer to const [constVariablePointer] zip30/zip.c:3627:11: style: Variable 'out_path_ext' can be declared as pointer to const [constVariablePointer] zip30/zip.c:3994:20: style: Variable 'now' can be declared as pointer to const [constVariablePointer] zip30/zip.c:4076:19: style: Variable 'n' can be declared as pointer to const [constVariablePointer] zip30/zip.c:5991:18: style: Variable 'now' can be declared as pointer to const [constVariablePointer] zip30/zip.c:462:4: style: Variable 's' is assigned a value that is never used. [unreadVariable] zip30/zip.c:1430:11: style: Variable 'zippath' is assigned a value that is never used. [unreadVariable] zip30/zip.c:1795:9: style: Variable 'zfn' is assigned a value that is never used. [unreadVariable] zip30/zip.c:3941:7: style: Variable 'n' is assigned a value that is never used. [unreadVariable] zip30/zip.c:3948:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] zip30/zipup.c:543:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zstdin [valueFlowBailoutIncompleteVar] zip30/zipup.c:1178:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/zipsplit.c:257:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] zip30/zipsplit.c:750:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zipsplit.c:882:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zipsplit.c:882:7: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'ulg {aka unsigned long}'. [invalidPrintfArgType_sint] zip30/zipsplit.c:905:11: error: Used file that is not opened. [useClosedFile] zip30/zipsplit.c:536:8: style: Local variable 'errbuf' shadows outer variable [shadowVariable] zip30/zip.h:319:13: note: Shadowed declaration zip30/zipsplit.c:536:8: note: Shadow variable zip30/zipsplit.c:97:9: style: Parameter 'out_path' can be declared as pointer to const [constParameterPointer] zip30/zipsplit.c:257:4: style: Variable 's' is assigned a value that is never used. [unreadVariable] zip30/zipup.c:971:9: style: Condition '!isdir' is always true [knownConditionTrueFalse] zip30/zipup.c:954:7: note: Assuming that condition 'isdir' is not redundant zip30/zipup.c:971:9: note: Condition '!isdir' is always true zip30/zipup.c:610:9: error: Memory leak: tempextra [memleak] zip30/zipup.c:610:9: error: Memory leak: tempcextra [memleak] zip30/zipup.c:488:14: warning: Either the condition '(tempextra=malloc(z->ext))==NULL' is redundant or there is possible null pointer dereference: tempextra. [nullPointerRedundantCheck] zip30/zipup.c:485:40: note: Assuming that condition '(tempextra=malloc(z->ext))==NULL' is not redundant zip30/zipup.c:488:14: note: Null pointer dereference zip30/zipup.c:495:14: warning: Either the condition '(tempcextra=malloc(z->cext))==NULL' is redundant or there is possible null pointer dereference: tempcextra. [nullPointerRedundantCheck] zip30/zipup.c:492:42: note: Assuming that condition '(tempcextra=malloc(z->cext))==NULL' is not redundant zip30/zipup.c:495:14: note: Null pointer dereference zip30/zipup.c:679:11: style: Local variable 'p' shadows outer variable [shadowVariable] zip30/zipup.c:403:17: note: Shadowed declaration zip30/zipup.c:679:11: note: Shadow variable zip30/zipup.c:310:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:1705:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/zipfile.c:2207:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zip30/zipfile.c:2971:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/zipfile.c:3266:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/zipfile.c:4063:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zip30/zipfile.c:6070:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zip30/zipfile.c:6127:11: style: The if condition is the same as the previous if condition [duplicateCondition] zip30/zipfile.c:6122:11: note: First condition zip30/zipfile.c:6127:11: note: Second condition zip30/zipfile.c:5231:19: style: Condition 'fix==2' is always false [knownConditionTrueFalse] zip30/zipfile.c:737:14: warning: Either the condition '(returnExtra=malloc(newExtraLen))==NULL' is redundant or there is possible null pointer dereference: returnExtra. [nullPointerRedundantCheck] zip30/zipfile.c:735:47: note: Assuming that condition '(returnExtra=malloc(newExtraLen))==NULL' is not redundant zip30/zipfile.c:737:14: note: Null pointer dereference zip30/zipfile.c:768:10: warning: Either the condition '(returnExtra=malloc(returnExtraLen))==NULL' is redundant or there is possible null pointer dereference: returnExtra. [nullPointerRedundantCheck] zip30/zipfile.c:766:46: note: Assuming that condition '(returnExtra=malloc(returnExtraLen))==NULL' is not redundant zip30/zipfile.c:768:10: note: Null pointer dereference zip30/zipfile.c:3654:37: style: Local variable 'x' shadows outer variable [shadowVariable] zip30/zipfile.c:3217:27: note: Shadowed declaration zip30/zipfile.c:3654:37: note: Shadow variable zip30/zipfile.c:3655:31: style: Local variable 'z' shadows outer variable [shadowVariable] zip30/zipfile.c:3218:21: note: Shadowed declaration zip30/zipfile.c:3655:31: note: Shadow variable zip30/zipfile.c:248:9: style: Variable 'aname' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:249:9: style: Variable 'bname' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:362:9: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zip30/zipfile.c:369:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:637:9: style: Parameter 'strValue' can be declared as pointer to const [constParameterPointer] zip30/zipfile.c:1767:19: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/zipfile.c:2161:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/zipfile.c:3220:9: style: Variable 'in_path_ext' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:4201:11: style: Variable 'in_path_ext' can be declared as pointer to const [constVariablePointer] zip30/zipfile.c:5510:21: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] zip30/zipfile.c:1730:13: style: Variable 'siz' is assigned a value that is never used. [unreadVariable] zip30/zipfile.c:2172:16: style: Variable 'start_offset' is assigned a value that is never used. [unreadVariable] zip30/zipfile.c:6015:18: style: Variable 'start_disk' is assigned a value that is never used. [unreadVariable] zip30/zipfile.c:6016:24: style: Variable 'start_offset' is assigned a value that is never used. [unreadVariable] diff: head zip30/macos/source/macopen.c:315:27: style: Variable 'isbinary' is assigned a value that is never used. [unreadVariable] head zip30/theos/_rename.c:17:25: error: failed to expand '_sys_rename', Wrong number of parameters for macro '_sys_rename'. [preprocessorErrorDirective] head zip30/timezone.c:662:13: style: Condition 'ltm==(struct tm*)NULL' is always false [knownConditionTrueFalse] 2.17.0 zip30/util.c:846:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] zip30/util.c:838:27: note: Assuming allocation function fails zip30/util.c:838:12: note: Assignment 'argv=(char**)malloc((argc+*Pargc+1)*sizeof(char*))', assigned value is 0 zip30/util.c:846:11: note: Null pointer addition head zip30/util.c:846:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] zip30/util.c:838:27: note: Assuming allocation function fails zip30/util.c:838:12: note: Assignment 'argv=(char**)malloc((argc+*Pargc+1)*sizeof(char*))', assigned value is 0 zip30/util.c:846:11: note: Null pointer addition DONE