2026-05-09 02:11 ftp://ftp.de.debian.org/debian/pool/main/j/jni-inchi/jni-inchi_0.8+dfsg.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 -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: eccb727 (2026-05-08 15:26:59 +0200) count: 17 17 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:234:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:655:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NO_ATOM [valueFlowBailoutIncompleteVar] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:246:12: warning: If memory allocation fails, then there is a possible null pointer dereference: atoms [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:245:19: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:245:19: note: Assignment 'atoms=malloc(sizeof(inchi_Atom)*natoms)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:246:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:309:12: warning: If memory allocation fails, then there is a possible null pointer dereference: stereos [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:308:21: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:308:21: note: Assignment 'stereos=malloc(sizeof(inchi_Stereo0D)*nstereo)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:309:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:337:12: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:336:18: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:336:18: note: Assignment 'opts=malloc(sizeof(char)*(strlen(options)+1))', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:337:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:453:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szINCHIKey [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:452:24: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:452:24: note: Assignment 'szINCHIKey=malloc(sizeof(char)*28)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:453:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:458:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szXtra1 [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:457:21: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:457:21: note: Assignment 'szXtra1=malloc(sizeof(char)*65)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:458:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:463:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szXtra2 [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:462:21: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:462:21: note: Assignment 'szXtra2=malloc(sizeof(char)*65)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:463:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:508:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szINCHIKey [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:507:24: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:507:24: note: Assignment 'szINCHIKey=malloc(sizeof(char)*28)', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:508:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:539:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szInchi [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:538:21: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:538:21: note: Assignment 'szInchi=malloc(sizeof(char)*(strlen(inchiString)+1))', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:539:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:547:12: warning: If memory allocation fails, then there is a possible null pointer dereference: szOptions [nullPointerOutOfMemory] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:546:23: note: Assuming allocation function fails jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:546:23: note: Assignment 'szOptions=malloc(sizeof(char)*(strlen(optionsString)+1))', assigned value is 0 jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:547:12: note: Null pointer dereference jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:593:56: style: Parameter 'atoms' can be declared as const array [constParameter] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:620:56: style: Parameter 'atoms' can be declared as const array [constParameter] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:646:63: style: Parameter 'stereos' can be declared as const array [constParameter] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:367:14: style: Unused variable: r [unusedVariable] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:683:9: style: Unused variable: i [unusedVariable] jni-inchi-0.8/src/main/native/jni-inchi/JniInchiWrapper.c:683:12: style: Unused variable: j [unusedVariable] diff: DONE