2025-07-09 12:54 ftp://ftp.de.debian.org/debian/pool/main/libj/libjna-java/libjna-java_5.15.0.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 125 122 elapsed-time: 68.4 66.8 head-timing-info: old-timing-info: head results: jna-5.15.0/native/testlib.c:131:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] jna-5.15.0/native/testlib.c:681:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] jna-5.15.0/native/callback.c:113:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable com_sun_jna_Native_CB_OPTION_DIRECT [valueFlowBailoutIncompleteVar] jna-5.15.0/native/callback.c:402:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jna-5.15.0/native/callback.c:578:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/callback.c:600:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/callback.c:688:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/callback.c:764:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_ONCE_INIT [valueFlowBailoutIncompleteVar] jna-5.15.0/native/testlib.c:185:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:184:18: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:184:18: note: Assignment 'p=malloc(2*sizeof(int))', assigned value is 0 jna-5.15.0/native/testlib.c:185:3: note: Null pointer dereference jna-5.15.0/native/testlib.c:186:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:184:18: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:184:18: note: Assignment 'p=malloc(2*sizeof(int))', assigned value is 0 jna-5.15.0/native/testlib.c:186:3: note: Null pointer dereference jna-5.15.0/native/testlib.c:693:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:691:43: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:691:23: note: Assignment 'data=(struct thread_data*)malloc(sizeof(struct thread_data))', assigned value is 0 jna-5.15.0/native/testlib.c:693:3: note: Null pointer dereference jna-5.15.0/native/testlib.c:694:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:691:43: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:691:23: note: Assignment 'data=(struct thread_data*)malloc(sizeof(struct thread_data))', assigned value is 0 jna-5.15.0/native/testlib.c:694:3: note: Null pointer dereference jna-5.15.0/native/testlib.c:695:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:691:43: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:691:23: note: Assignment 'data=(struct thread_data*)malloc(sizeof(struct thread_data))', assigned value is 0 jna-5.15.0/native/testlib.c:695:3: note: Null pointer dereference jna-5.15.0/native/testlib.c:696:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] jna-5.15.0/native/testlib.c:691:43: note: Assuming allocation function fails jna-5.15.0/native/testlib.c:691:23: note: Assignment 'data=(struct thread_data*)malloc(sizeof(struct thread_data))', assigned value is 0 jna-5.15.0/native/testlib.c:696:12: note: Null pointer dereference jna-5.15.0/native/testlib.c:486:18: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] jna-5.15.0/native/testlib.c:490:18: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] jna-5.15.0/native/testlib.c:289:32: style: Parameter 'args' can be declared as const array [constParameter] jna-5.15.0/native/testlib.c:294:39: style: Parameter 'args' can be declared as const array [constParameter] jna-5.15.0/native/testlib.c:299:33: style: Parameter 'args' can be declared as const array [constParameter] jna-5.15.0/native/testlib.c:336:64: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/testlib.c:620:61: style: Parameter 'arg' can be declared as const array [constParameter] jna-5.15.0/native/testlib.c:1058:62: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/testlib.c:1063:65: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/testlib.c:1101:32: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/testlib.c:1115:15: style: Variable 'currInput' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/testlib.c:331:7: style: struct member '_VariableSizedStructure::length' is never used. [unusedStructMember] jna-5.15.0/native/testlib.c:530:9: style: union member '_test_union_t::f1' is never used. [unusedStructMember] jna-5.15.0/native/testlib.c:531:11: style: union member '_test_union_t::f2' is never used. [unusedStructMember] jna-5.15.0/native/callback.c:409:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:425:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:441:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:448:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:452:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:456:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:469:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:472:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/callback.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:137:3: note: Null pointer dereference jna-5.15.0/native/callback.c:138:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:138:3: note: Null pointer dereference jna-5.15.0/native/callback.c:138:25: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:138:25: note: Null pointer dereference jna-5.15.0/native/callback.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:139:3: note: Null pointer dereference jna-5.15.0/native/callback.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:140:3: note: Null pointer dereference jna-5.15.0/native/callback.c:142:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:142:3: note: Null pointer dereference jna-5.15.0/native/callback.c:143:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:143:3: note: Null pointer dereference jna-5.15.0/native/callback.c:144:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:144:3: note: Null pointer dereference jna-5.15.0/native/callback.c:145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:145:3: note: Null pointer dereference jna-5.15.0/native/callback.c:146:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:146:3: note: Null pointer dereference jna-5.15.0/native/callback.c:147:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:147:3: note: Null pointer dereference jna-5.15.0/native/callback.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:148:3: note: Null pointer dereference jna-5.15.0/native/callback.c:150:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:150:3: note: Null pointer dereference jna-5.15.0/native/callback.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:151:3: note: Null pointer dereference jna-5.15.0/native/callback.c:151:27: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:151:27: note: Null pointer dereference jna-5.15.0/native/callback.c:151:51: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:151:51: note: Null pointer dereference jna-5.15.0/native/callback.c:152:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:152:3: note: Null pointer dereference jna-5.15.0/native/callback.c:157:21: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:157:21: note: Null pointer dereference jna-5.15.0/native/callback.c:114:12: style: Variable 'in_dll' is assigned a value that is never used. [unreadVariable] jna-5.15.0/native/dispatch.c:90:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:441:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:481:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable com_sun_jna_Function_MASK_CC [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:727:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jchar [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:761:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jchar [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:919:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jchar [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:974:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:988:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1138:126: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1151:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1217:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_FALSE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1232:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_TRUE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1638:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1669:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jint [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1702:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_uint32 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1751:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_slong [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:1783:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable release [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2061:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2112:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_pointer [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2128:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_pointer [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2164:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_double [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2179:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_float [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2194:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_sint32 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2209:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_sint64 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:2224:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_void [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3059:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_type_void [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JAWT_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3314:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_FALSE [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3325:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3352:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3406:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_VERSION_1_4 [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3513:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FFI_LAST_ABI [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3604:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ffi_cif [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3618:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_OK [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:3662:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FFI_DEFAULT_ABI [valueFlowBailoutIncompleteVar] jna-5.15.0/native/dispatch.c:494:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:496:5: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:497:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:498:24: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:518:25: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:530:25: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:542:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:733:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:766:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1792:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1794:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1796:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1810:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1836:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1920:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1925:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:1931:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:3177:32: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.15.0/native/dispatch.c:76:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] jna-5.15.0/native/dispatch.c:75:31: note: Assuming allocation function fails jna-5.15.0/native/dispatch.c:75:17: note: Assignment 'buf=(char*)malloc(strlen(message)+1)', assigned value is 0 jna-5.15.0/native/dispatch.c:76:12: note: Null pointer dereference jna-5.15.0/native/dispatch.c:97:18: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] jna-5.15.0/native/dispatch.c:96:29: note: Assuming allocation function fails jna-5.15.0/native/dispatch.c:96:15: note: Assignment 'buf=(char*)malloc(requiredBuffer)', assigned value is 0 jna-5.15.0/native/dispatch.c:97:18: note: Null pointer dereference jna-5.15.0/native/dispatch.c:3203:16: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] jna-5.15.0/native/dispatch.c:3202:33: note: Assuming allocation function fails jna-5.15.0/native/dispatch.c:3202:19: note: Assignment 'msg=(char*)malloc(requiredBuffer)', assigned value is 0 jna-5.15.0/native/dispatch.c:3203:16: note: Null pointer dereference jna-5.15.0/native/dispatch.c:1345:22: error: Pointer addition with NULL pointer. [nullPointerArithmetic] jna-5.15.0/native/dispatch.c:1342:13: note: Assignment 'ptr=NULL', assigned value is 0 jna-5.15.0/native/dispatch.c:1345:22: note: Null pointer addition jna-5.15.0/native/dispatch.c:849:37: style:inconclusive: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. [funcArgNamesDifferent] jna-5.15.0/native/dispatch.c:268:53: note: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. jna-5.15.0/native/dispatch.c:849:37: note: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. jna-5.15.0/native/dispatch.c:3048:12: style: Local variable 'cls' shadows outer argument [shadowArgument] jna-5.15.0/native/dispatch.c:2862:53: note: Shadowed declaration jna-5.15.0/native/dispatch.c:3048:12: note: Shadow variable jna-5.15.0/native/dispatch.c:1042:39: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/dispatch.c:1622:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/dispatch.c:1776:26: style: Parameter 'cif' can be declared as pointer to const. However it seems that 'dispatch_direct' is a callback function, if 'cif' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jna-5.15.0/native/dispatch.c:3571:55: note: You might need to cast the function pointer here jna-5.15.0/native/dispatch.c:1776:26: note: Parameter 'cif' can be declared as pointer to const jna-5.15.0/native/dispatch.c:2430:11: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/dispatch.c:2432:10: style: Variable 'peer' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/dispatch.c:2732:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/dispatch.c:2816:10: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/dispatch.c:3170:17: style: Variable 'pathElement' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/dispatch.c:3263:35: style: Variable 'xdsi' can be declared as pointer to const [constVariablePointer] jna-5.15.0/native/dispatch.c:3304:46: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] jna-5.15.0/native/dispatch.c:3318:45: style: Parameter 'UNUSED_env' can be declared as pointer to const [constParameterPointer] diff: head jna-5.15.0/native/callback.c:138:25: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:138:25: note: Null pointer dereference head jna-5.15.0/native/callback.c:151:27: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:151:27: note: Null pointer dereference head jna-5.15.0/native/callback.c:151:51: warning: If memory allocation fails, then there is a possible null pointer dereference: cb [nullPointerOutOfMemory] jna-5.15.0/native/callback.c:136:26: note: Assuming allocation function fails jna-5.15.0/native/callback.c:136:8: note: Assignment 'cb=(struct callback*)calloc(1,sizeof(struct callback))', assigned value is 0 jna-5.15.0/native/callback.c:151:51: note: Null pointer dereference DONE