2026-05-06 02:36 ftp://ftp.de.debian.org/debian/pool/main/a/android-platform-build/android-platform-build_10.0.0+r36.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=selinux --library=zlib --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 174 174 elapsed-time: 1.4 1.1 head-timing-info: old-timing-info: head results: tools/acp/acp.c:81:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tools/acp/acp.c:189:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_NO_DEREFERENCE [valueFlowBailoutIncompleteVar] tools/acp/acp.c:62:12: warning: If memory allocation fails, then there is a possible null pointer dereference: stripDest [nullPointerOutOfMemory] tools/acp/acp.c:61:23: note: Assuming allocation function fails tools/acp/acp.c:61:23: note: Assignment 'stripDest=malloc(stripDestLen+1)', assigned value is 0 tools/acp/acp.c:62:12: note: Null pointer dereference tools/acp/acp.c:63:9: warning: If memory allocation fails, then there is a possible null pointer dereference: stripDest [nullPointerOutOfMemory] tools/acp/acp.c:61:23: note: Assuming allocation function fails tools/acp/acp.c:61:23: note: Assignment 'stripDest=malloc(stripDestLen+1)', assigned value is 0 tools/acp/acp.c:63:9: note: Null pointer dereference tools/acp/acp.c:123:16: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] tools/acp/acp.c:122:21: note: Assuming allocation function fails tools/acp/acp.c:122:21: note: Assignment 'src=malloc(srcLen+1)', assigned value is 0 tools/acp/acp.c:123:16: note: Null pointer dereference tools/acp/acp.c:125:13: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] tools/acp/acp.c:122:21: note: Assuming allocation function fails tools/acp/acp.c:122:21: note: Assignment 'src=malloc(srcLen+1)', assigned value is 0 tools/acp/acp.c:125:13: note: Null pointer dereference tools/acp/acp.c:129:27: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] tools/acp/acp.c:122:21: note: Assuming allocation function fails tools/acp/acp.c:122:21: note: Assignment 'src=malloc(srcLen+1)', assigned value is 0 tools/acp/acp.c:129:27: note: Null pointer dereference tools/acp/acp.c:142:20: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] tools/acp/acp.c:141:25: note: Assuming allocation function fails tools/acp/acp.c:141:25: note: Assignment 'dst=malloc(stripDestLen+1+srcNameLen+1)', assigned value is 0 tools/acp/acp.c:142:20: note: Null pointer dereference tools/acp/acp.c:143:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] tools/acp/acp.c:141:25: note: Assuming allocation function fails tools/acp/acp.c:141:25: note: Assignment 'dst=malloc(stripDestLen+1+srcNameLen+1)', assigned value is 0 tools/acp/acp.c:143:13: note: Null pointer dereference tools/acp/acp.c:144:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tools/acp/acp.c:141:25: note: Assuming allocation function fails tools/acp/acp.c:141:25: note: Assignment 'dst=malloc(stripDestLen+1+srcNameLen+1)', assigned value is 0 tools/acp/acp.c:144:24: note: Null pointer addition tools/acp/acp.c:41:35: style: Parameter 'argv' can be declared as const array [constParameter] tools/atree/atree.cpp:61:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/atree.cpp:84:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/atree.cpp:126:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] tools/atree/atree.cpp:224:13: style: Consider using std::any_of, std::all_of, std::none_of, or std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] tools/atree/atree.cpp:231:17: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] tools/atree/atree.cpp:213:57: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:223:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:229:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:235:49: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:241:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:251:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:265:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:273:52: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:284:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:299:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:309:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/atree.cpp:345:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/files.cpp:136:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] tools/atree/files.cpp:192:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/files.cpp:358:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/files.cpp:416:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PERIOD [valueFlowBailoutIncompleteVar] tools/atree/files.cpp:433:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::listLine' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::sourceIsDir' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::sourceMod' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::sourceSize' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::outSize' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::outMod' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::outIsDir' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:470:13: warning: Member variable 'FileRecord::mode' is not initialized in the constructor. [uninitMemberVar] tools/atree/files.cpp:216:11: style: C-style pointer casting [cstyleCast] tools/atree/files.cpp:341:9: style: The scope of the variable 'err' can be reduced. [variableScope] tools/atree/files.cpp:438:20: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] tools/atree/files.cpp:416:58: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] tools/atree/files.cpp:344:35: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/files.cpp:415:33: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/files.cpp:456:68: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/fs.cpp:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/fs.cpp:49:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/fs.cpp:118:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/fs.cpp:141:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_NO_DEREFERENCE [valueFlowBailoutIncompleteVar] tools/atree/fs.cpp:171:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/atree/fs.cpp:164:26: style: Condition '*s!=' '' is always true [knownConditionTrueFalse] tools/atree/fs.cpp:186:30: style: Condition '*s!=' '' is always true [knownConditionTrueFalse] tools/atree/fs.cpp:184:21: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tools/atree/fs.cpp:179:31: note: Assuming allocation function fails tools/atree/fs.cpp:179:31: note: Assignment 'cmd=strdup(strip_cmd)', assigned value is 0 tools/atree/fs.cpp:183:23: note: Assignment 's=cmd', assigned value is 0 tools/atree/fs.cpp:184:21: note: Null pointer dereference tools/atree/fs.cpp:185:25: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tools/atree/fs.cpp:179:31: note: Assuming allocation function fails tools/atree/fs.cpp:179:31: note: Assignment 'cmd=strdup(strip_cmd)', assigned value is 0 tools/atree/fs.cpp:183:23: note: Assignment 's=cmd', assigned value is 0 tools/atree/fs.cpp:185:25: note: Null pointer dereference tools/atree/fs.cpp:186:22: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tools/atree/fs.cpp:179:31: note: Assuming allocation function fails tools/atree/fs.cpp:179:31: note: Assignment 'cmd=strdup(strip_cmd)', assigned value is 0 tools/atree/fs.cpp:183:23: note: Assignment 's=cmd', assigned value is 0 tools/atree/fs.cpp:186:22: note: Null pointer dereference tools/atree/fs.cpp:197:13: warning: If memory allocation fails, then there is a possible null pointer dereference: args [nullPointerOutOfMemory] tools/atree/fs.cpp:180:54: note: Assuming allocation function fails tools/atree/fs.cpp:180:33: note: Assignment 'args=(const char**)std::malloc(sizeof(const char*)*(num_args+2))', assigned value is 0 tools/atree/fs.cpp:197:13: note: Null pointer dereference tools/atree/fs.cpp:198:13: warning: If memory allocation fails, then there is a possible null pointer dereference: args [nullPointerOutOfMemory] tools/atree/fs.cpp:180:54: note: Assuming allocation function fails tools/atree/fs.cpp:180:33: note: Assignment 'args=(const char**)std::malloc(sizeof(const char*)*(num_args+2))', assigned value is 0 tools/atree/fs.cpp:198:13: note: Null pointer dereference tools/atree/fs.cpp:200:30: warning: If memory allocation fails, then there is a possible null pointer dereference: args [nullPointerOutOfMemory] tools/atree/fs.cpp:180:54: note: Assuming allocation function fails tools/atree/fs.cpp:180:33: note: Assignment 'args=(const char**)std::malloc(sizeof(const char*)*(num_args+2))', assigned value is 0 tools/atree/fs.cpp:200:30: note: Null pointer dereference tools/atree/fs.cpp:180:33: style: C-style pointer casting [cstyleCast] tools/atree/fs.cpp:200:39: style: C-style pointer casting [cstyleCast] tools/atree/fs.cpp:44:9: style: The scope of the variable 'err' can be reduced. [variableScope] tools/atree/fs.cpp:104:9: style: The scope of the variable 'err' can be reduced. [variableScope] tools/atree/fs.cpp:183:19: style: Local variable 's' shadows outer variable [shadowVariable] tools/atree/fs.cpp:161:21: note: Shadowed declaration tools/atree/fs.cpp:183:19: note: Shadow variable tools/atree/fs.cpp:57:24: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] tools/atree/fs.cpp:75:74: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/atree/fs.cpp:82:72: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tools/fs_config/fs_config.c:70:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/fs_config/fs_config.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] tools/fs_config/fs_config.c:141:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tools/fs_config/fs_config.c:141:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tools/fs_config/fs_config.c:165:29: warning: If memory allocation fails, then there is a possible null pointer dereference: secontext [nullPointerOutOfMemory] tools/fs_config/fs_config.c:162:27: note: Assuming allocation function fails tools/fs_config/fs_config.c:162:27: note: Assignment 'secontext=strdup("u:object_r:unlabeled:s0")', assigned value is 0 tools/fs_config/fs_config.c:165:29: note: Null pointer dereference tools/fs_config/fs_config.c:59:22: style: Variable 'seopts' can be declared as const array [constVariable] tools/fs_get_stats/fs_get_stats.c:26:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/fs_get_stats/fs_get_stats.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/fs_get_stats/fs_get_stats.c:63:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tools/fs_get_stats/fs_get_stats.c:63:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tools/libhost/CopyFile.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_VERBOSE_MASK [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:107:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_VERBOSE_MASK [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:127:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_TIMESTAMPS [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:218:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:365:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:453:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:554:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COPY_NO_DEREFERENCE [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:173:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] tools/libhost/CopyFile.c:512:16: warning: If memory allocation fails, then there is a possible null pointer dereference: srcFile [nullPointerOutOfMemory] tools/libhost/CopyFile.c:511:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:511:25: note: Assignment 'srcFile=malloc(srcLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:512:16: note: Null pointer dereference tools/libhost/CopyFile.c:513:9: warning: If memory allocation fails, then there is a possible null pointer dereference: srcFile [nullPointerOutOfMemory] tools/libhost/CopyFile.c:511:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:511:25: note: Assignment 'srcFile=malloc(srcLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:513:9: note: Null pointer dereference tools/libhost/CopyFile.c:517:16: warning: If memory allocation fails, then there is a possible null pointer dereference: dstFile [nullPointerOutOfMemory] tools/libhost/CopyFile.c:516:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:516:25: note: Assignment 'dstFile=malloc(dstLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:517:16: note: Null pointer dereference tools/libhost/CopyFile.c:518:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dstFile [nullPointerOutOfMemory] tools/libhost/CopyFile.c:516:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:516:25: note: Assignment 'dstFile=malloc(dstLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:518:9: note: Null pointer dereference tools/libhost/CopyFile.c:514:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tools/libhost/CopyFile.c:511:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:511:25: note: Assignment 'srcFile=malloc(srcLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:514:24: note: Null pointer addition tools/libhost/CopyFile.c:519:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tools/libhost/CopyFile.c:516:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:516:25: note: Assignment 'dstFile=malloc(dstLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:519:24: note: Null pointer addition tools/libhost/CopyFile.c:492:24: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] tools/makeparallel/makeparallel.cpp:50:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] tools/makeparallel/makeparallel.cpp:113:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] tools/makeparallel/makeparallel.cpp:191:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_SIGINFO [valueFlowBailoutIncompleteVar] tools/makeparallel/makeparallel.cpp:245:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] tools/makeparallel/makeparallel.cpp:328:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] tools/makeparallel/makeparallel.cpp:310:21: style: Condition 'ParseMakeflags(makeflags,&in_fd,&out_fd,¶llel,&keep_going)' is always true [knownConditionTrueFalse] tools/makeparallel/makeparallel.cpp:310:21: note: Calling function 'ParseMakeflags' returns 1 tools/makeparallel/makeparallel.cpp:310:21: note: Condition 'ParseMakeflags(makeflags,&in_fd,&out_fd,¶llel,&keep_going)' is always true tools/makeparallel/makeparallel.cpp:372:7: style: Condition '!ret' is always true [knownConditionTrueFalse] tools/makeparallel/makeparallel.cpp:371:13: note: Assignment 'ret=0', assigned value is 0 tools/makeparallel/makeparallel.cpp:372:7: note: Condition '!ret' is always true tools/makeparallel/makeparallel.cpp:227:3: error: Resource handle 'dup_fd' freed twice. [doubleFree] tools/makeparallel/makeparallel.cpp:193:5: note: Resource handle 'dup_fd' freed twice. tools/makeparallel/makeparallel.cpp:227:3: note: Resource handle 'dup_fd' freed twice. tools/makeparallel/makeparallel.cpp:397:9: style: Local variable 'ret' shadows outer variable [shadowVariable] tools/makeparallel/makeparallel.cpp:371:7: note: Shadowed declaration tools/makeparallel/makeparallel.cpp:397:9: note: Shadow variable tools/makeparallel/makeparallel.cpp:109:21: style: Variable 'v' can be declared as reference to const [constVariableReference] tools/makeparallel/makeparallel.cpp:110:17: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] tools/zipalign/ZipAlign.cpp:33:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/zipalign/ZipAlign.cpp:81:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/zipalign/ZipAlign.cpp:139:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/zipalign/ZipAlign.cpp:181:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipAlign.cpp:265:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/zipalign/ZipAlign.cpp:48:15: style: Parameter 'pEntry' can be declared as pointer to const [constParameterPointer] tools/zipalign/ZipEntry.cpp:51:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:157:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NO_MEMORY [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:203:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_OPERATION [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:406:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:488:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNKNOWN_ERROR [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:540:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:652:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNKNOWN_ERROR [valueFlowBailoutIncompleteVar] tools/zipalign/ZipEntry.cpp:129:16: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:135:16: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:158:16: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:158:40: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:164:16: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:164:43: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:252:16: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:252:40: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:327:20: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:327:44: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipEntry.cpp:268:29: style: Variable 'mCDE.mCompressionMethod' is reassigned a value before the old one has been used. [redundantAssignment] tools/zipalign/ZipEntry.cpp:264:29: note: mCDE.mCompressionMethod is assigned tools/zipalign/ZipEntry.cpp:268:29: note: mCDE.mCompressionMethod is overwritten tools/zipalign/ZipFile.cpp:50:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:71:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_OPERATION [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:208:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:364:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:520:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_OPERATION [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:627:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_OPERATION [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:764:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:792:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNKNOWN_ERROR [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:826:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNKNOWN_ERROR [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:852:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:936:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:947:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:1000:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:1100:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:1331:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_OPERATION [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:1378:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNKNOWN_ERROR [valueFlowBailoutIncompleteVar] tools/zipalign/ZipFile.cpp:754:19: style: The member function 'android::ZipFile::copyFpToFp' can be static. [functionStatic] tools/zipalign/ZipFile.h:222:14: note: The member function 'android::ZipFile::copyFpToFp' can be static. tools/zipalign/ZipFile.cpp:754:19: note: The member function 'android::ZipFile::copyFpToFp' can be static. tools/zipalign/ZipFile.cpp:784:19: style: The member function 'android::ZipFile::copyDataToFp' can be static. [functionStatic] tools/zipalign/ZipFile.h:224:14: note: The member function 'android::ZipFile::copyDataToFp' can be static. tools/zipalign/ZipFile.cpp:784:19: note: The member function 'android::ZipFile::copyDataToFp' can be static. tools/zipalign/ZipFile.cpp:807:19: style: The member function 'android::ZipFile::copyPartialFpToFp' can be static. [functionStatic] tools/zipalign/ZipFile.h:227:14: note: The member function 'android::ZipFile::copyPartialFpToFp' can be static. tools/zipalign/ZipFile.cpp:807:19: note: The member function 'android::ZipFile::copyPartialFpToFp' can be static. tools/zipalign/ZipFile.cpp:1097:19: style: The member function 'android::ZipFile::filemove' can be static. [functionStatic] tools/zipalign/ZipFile.h:230:14: note: The member function 'android::ZipFile::filemove' can be static. tools/zipalign/ZipFile.cpp:1097:19: note: The member function 'android::ZipFile::filemove' can be static. tools/zipalign/ZipFile.cpp:849:19: style: The member function 'android::ZipFile::compressFpToFp' can be static. [functionStatic] tools/zipalign/ZipFile.h:232:14: note: The member function 'android::ZipFile::compressFpToFp' can be static. tools/zipalign/ZipFile.cpp:849:19: note: The member function 'android::ZipFile::compressFpToFp' can be static. tools/zipalign/ZipFile.cpp:1150:17: style: The member function 'android::ZipFile::getModTime' can be static. [functionStatic] tools/zipalign/ZipFile.h:236:12: note: The member function 'android::ZipFile::getModTime' can be static. tools/zipalign/ZipFile.cpp:1150:17: note: The member function 'android::ZipFile::getModTime' can be static. tools/zipalign/ZipFile.cpp:1221:5: style: Class 'FileReader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tools/zipalign/ZipFile.cpp:789:34: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipFile.cpp:867:26: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipFile.cpp:868:42: style: C-style pointer casting [cstyleCast] tools/zipalign/ZipFile.cpp:757:12: style: The scope of the variable 'count' can be reduced. [variableScope] tools/zipalign/ZipFile.cpp:811:12: style: The scope of the variable 'count' can be reduced. [variableScope] tools/zipalign/ZipFile.cpp:1102:13: style: The scope of the variable 'readBuf' can be reduced. [variableScope] tools/zipalign/ZipFile.cpp:1099:25: style: Checking if unsigned expression 'n' is less than zero. [unsignedLessThanZero] tools/zipalign/ZipFile.cpp:1097:44: style:inconclusive: Function 'filemove' argument 2 names different: declaration 'dest' definition 'dst'. [funcArgNamesDifferent] tools/zipalign/ZipFile.h:230:39: note: Function 'filemove' argument 2 names different: declaration 'dest' definition 'dst'. tools/zipalign/ZipFile.cpp:1097:44: note: Function 'filemove' argument 2 names different: declaration 'dest' definition 'dst'. tools/zipalign/ZipFile.cpp:1251:43: style:inconclusive: Function 'uncompress' argument 1 names different: declaration 'pEntry' definition 'entry'. [funcArgNamesDifferent] tools/zipalign/ZipFile.h:144:38: note: Function 'uncompress' argument 1 names different: declaration 'pEntry' definition 'entry'. tools/zipalign/ZipFile.cpp:1251:43: note: Function 'uncompress' argument 1 names different: declaration 'pEntry' definition 'entry'. tools/zipalign/ZipFile.cpp:683:14: style: Local variable 'startPosn' shadows outer variable [shadowVariable] tools/zipalign/ZipFile.cpp:624:19: note: Shadowed declaration tools/zipalign/ZipFile.cpp:683:14: note: Shadow variable tools/zipalign/ZipFile.cpp:691:14: style: Local variable 'endPosn' shadows outer variable [shadowVariable] tools/zipalign/ZipFile.cpp:624:30: note: Shadowed declaration tools/zipalign/ZipFile.cpp:691:14: note: Shadow variable tools/ziptime/ZipEntry.cpp:52:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipEntry.cpp:95:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipEntry.cpp:133:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipEntry.cpp:87:37: style: The member function 'android::ZipEntry::LocalFileHeader::rewrite' can be static. [functionStatic] tools/ziptime/ZipEntry.h:83:18: note: The member function 'android::ZipEntry::LocalFileHeader::rewrite' can be static. tools/ziptime/ZipEntry.cpp:87:37: note: The member function 'android::ZipEntry::LocalFileHeader::rewrite' can be static. tools/ziptime/ZipFile.cpp:43:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tools/ziptime/ZipFile.cpp:87:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipFile.cpp:218:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipTime.cpp:29:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/ziptime/ZipTime.cpp:43:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tools/libhost/CopyFile.c:451:23: warning: Null pointer dereference: dst [ctunullpointer] tools/libhost/CopyFile.c:516:25: note: Assuming allocation function fails tools/libhost/CopyFile.c:516:25: note: Assignment 'dstFile=malloc(dstLen+1+nameLen+1)', assigned value is 0 tools/libhost/CopyFile.c:521:30: note: Calling function copyFileRecursive, 2nd argument is null tools/libhost/CopyFile.c:580:22: note: Calling function copyDirectory, 2nd argument is null tools/libhost/CopyFile.c:451:23: note: Dereferencing argument dst that is null diff: DONE