2025-05-05 20:12 ftp://ftp.de.debian.org/debian/pool/main/libn/libnative-platform-java/libnative-platform-java_0.14.orig.tar.xz 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: 581f101 (2025-05-05 21:13:30 +0200) count: 26 26 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: native-platform-0.14/src/curses/cpp/curses.cpp:62:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] native-platform-0.14/src/curses/cpp/curses.cpp:80:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] native-platform-0.14/src/curses/cpp/curses.cpp:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NATIVE_VERSION [valueFlowBailoutIncompleteVar] native-platform-0.14/src/curses/cpp/curses.cpp:54:20: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/curses/cpp/curses.cpp:62:15: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/curses/cpp/curses.cpp:74:24: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/curses/cpp/curses.cpp:80:15: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/curses/cpp/curses.cpp:87:84: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] native-platform-0.14/src/shared/cpp/generic.cpp:38:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NATIVE_VERSION [valueFlowBailoutIncompleteVar] native-platform-0.14/src/shared/cpp/generic.cpp:37:89: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] native-platform-0.14/src/shared/cpp/generic_posix.cpp:34:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] native-platform-0.14/src/shared/cpp/generic_posix.cpp:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] native-platform-0.14/src/shared/cpp/generic_posix.cpp:29:20: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/main/cpp/posix.cpp:87:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_FILE [valueFlowBailoutIncompleteVar] native-platform-0.14/src/main/cpp/posix.cpp:130:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] native-platform-0.14/src/main/cpp/posix.cpp:286:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] native-platform-0.14/src/main/cpp/posix.cpp:355:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_FALSE [valueFlowBailoutIncompleteVar] native-platform-0.14/src/main/cpp/posix.cpp:364:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] native-platform-0.14/src/main/cpp/posix.cpp:190:17: warning: If memory allocation fails, then there is a possible null pointer dereference: childPath [nullPointerOutOfMemory] native-platform-0.14/src/main/cpp/posix.cpp:189:40: note: Assuming allocation function fails native-platform-0.14/src/main/cpp/posix.cpp:189:27: note: Assignment 'childPath=(char*)malloc(childPathLen)', assigned value is 0 native-platform-0.14/src/main/cpp/posix.cpp:190:17: note: Null pointer dereference native-platform-0.14/src/main/cpp/posix.cpp:191:9: warning: If memory allocation fails, then there is a possible null pointer dereference: childPath [nullPointerOutOfMemory] native-platform-0.14/src/main/cpp/posix.cpp:189:40: note: Assuming allocation function fails native-platform-0.14/src/main/cpp/posix.cpp:189:27: note: Assignment 'childPath=(char*)malloc(childPathLen)', assigned value is 0 native-platform-0.14/src/main/cpp/posix.cpp:191:9: note: Null pointer dereference native-platform-0.14/src/main/cpp/posix.cpp:192:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] native-platform-0.14/src/main/cpp/posix.cpp:189:40: note: Assuming allocation function fails native-platform-0.14/src/main/cpp/posix.cpp:189:27: note: Assignment 'childPath=(char*)malloc(childPathLen)', assigned value is 0 native-platform-0.14/src/main/cpp/posix.cpp:192:25: note: Null pointer addition native-platform-0.14/src/main/cpp/posix.cpp:189:27: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/main/cpp/posix.cpp:253:22: style: C-style pointer casting [cstyleCast] native-platform-0.14/src/main/cpp/posix.cpp:278:84: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] native-platform-0.14/src/main/cpp/posix.cpp:350:17: style: Unused variable: fileInfo [unusedVariable] native-platform-0.14/src/main/cpp/posix.cpp:351:9: style: Unused variable: result [unusedVariable] diff: 2.17.0 native-platform-0.14/src/main/cpp/posix.cpp:192:25: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] native-platform-0.14/src/main/cpp/posix.cpp:189:40: note: Assuming allocation function fails native-platform-0.14/src/main/cpp/posix.cpp:189:27: note: Assignment 'childPath=(char*)malloc(childPathLen)', assigned value is 0 native-platform-0.14/src/main/cpp/posix.cpp:192:25: note: Null pointer addition head native-platform-0.14/src/main/cpp/posix.cpp:192:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] native-platform-0.14/src/main/cpp/posix.cpp:189:40: note: Assuming allocation function fails native-platform-0.14/src/main/cpp/posix.cpp:189:27: note: Assignment 'childPath=(char*)malloc(childPathLen)', assigned value is 0 native-platform-0.14/src/main/cpp/posix.cpp:192:25: note: Null pointer addition DONE