2026-05-21 17:31 ftp://ftp.de.debian.org/debian/pool/main/h/h5z-zfp/h5z-zfp_1.1.1.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 -j4 platform: Linux-7.0.7+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: a84a5a62 (2026-05-21 14:07:06 +0200) count: 28 28 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: LLNL-H5Z-ZFP-092190c/src/H5Zzfp.c:59:2: error: #error ZFP LIBRARY VERSION NOT DETECTED [preprocessorErrorDirective] LLNL-H5Z-ZFP-092190c/src/H5Zzfp_props.c:31:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5P_DATASET_CREATE [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/print_h5repack_farg.c:63:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5Z_ZFP_MODE_RATE [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/src/H5Zzfp_props.c:149:3: portability: Casting between unsigned int * and double * which have an incompatible binary data representation. [invalidPointerCast] LLNL-H5Z-ZFP-092190c/src/H5Zzfp_props.c:161:3: portability: Casting between unsigned int * and double * which have an incompatible binary data representation. [invalidPointerCast] LLNL-H5Z-ZFP-092190c/test/test_read.c:109:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/test_error.c:27:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5P_DATASET_CREATE [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/test_error.c:84:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5Z_ZFP_MODE_ACCURACY [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/print_h5repack_farg.c:81:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] LLNL-H5Z-ZFP-092190c/test/test_read.c:96:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_read.c:77:34: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_read.c:77:19: note: Assignment 'ifile=(char*)calloc(256,sizeof(char))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_read.c:96:12: note: Null pointer dereference LLNL-H5Z-ZFP-092190c/test/test_read.c:97:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_read.c:77:34: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_read.c:77:19: note: Assignment 'ifile=(char*)calloc(256,sizeof(char))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_read.c:97:5: note: Assuming condition is false LLNL-H5Z-ZFP-092190c/test/test_read.c:97:5: note: Null pointer dereference LLNL-H5Z-ZFP-092190c/test/test_write.c:218:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/test_write.c:232:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5P_DATASET_CREATE [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/test_write.c:306:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5Z_ZFP_MODE_RATE [valueFlowBailoutIncompleteVar] LLNL-H5Z-ZFP-092190c/test/test_common.h:131:60: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] LLNL-H5Z-ZFP-092190c/test/test_error.c:162:21: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] LLNL-H5Z-ZFP-092190c/test/test_error.c:163:23: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed variable LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: note: Shadow local variable LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed variable LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: note: Shadow local variable LLNL-H5Z-ZFP-092190c/test/test_write.c:322:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_write.c:293:34: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_write.c:293:19: note: Assignment 'ofile=(char*)calloc(256,sizeof(char))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_write.c:322:12: note: Null pointer dereference LLNL-H5Z-ZFP-092190c/test/test_write.c:323:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_write.c:292:34: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_write.c:292:19: note: Assignment 'ifile=(char*)calloc(256,sizeof(char))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_write.c:323:5: note: Assuming condition is false LLNL-H5Z-ZFP-092190c/test/test_write.c:323:5: note: Null pointer dereference LLNL-H5Z-ZFP-092190c/test/test_write.c:324:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_write.c:293:34: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_write.c:293:19: note: Assignment 'ofile=(char*)calloc(256,sizeof(char))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_write.c:324:5: note: Assuming condition is false LLNL-H5Z-ZFP-092190c/test/test_write.c:324:5: note: Null pointer dereference LLNL-H5Z-ZFP-092190c/test/test_write.c:210:23: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] LLNL-H5Z-ZFP-092190c/test/test_write.c:483:22: note: Assuming allocation function fails LLNL-H5Z-ZFP-092190c/test/test_write.c:483:22: note: Assignment 'tbuf=malloc(31*31*31*3*3*4*sizeof(double))', assigned value is 0 LLNL-H5Z-ZFP-092190c/test/test_write.c:500:30: note: Calling function 'buffer_time_step', 1st argument 'tbuf' value is 0 LLNL-H5Z-ZFP-092190c/test/test_write.c:210:23: note: Null pointer addition LLNL-H5Z-ZFP-092190c/test/test_write.c:201:36: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] LLNL-H5Z-ZFP-092190c/test/test_write.c:425:13: style: Variable 'dims' can be declared as const array [constVariable] LLNL-H5Z-ZFP-092190c/test/test_write.c:426:13: style: Variable 'ucdims' can be declared as const array [constVariable] LLNL-H5Z-ZFP-092190c/test/test_write.c:462:16: style: Variable 'dims' can be declared as const array [constVariable] LLNL-H5Z-ZFP-092190c/test/test_write.c:463:13: style: Variable 'ucdims' can be declared as const array [constVariable] diff: 2.20.0 LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed declaration LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: note: Shadow variable head LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed variable LLNL-H5Z-ZFP-092190c/test/test_error.c:184:16: note: Shadow local variable 2.20.0 LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed declaration LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: note: Shadow variable head LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: style: Local variable 'd' shadows outer variable [shadowVariable] LLNL-H5Z-ZFP-092190c/test/test_error.c:73:12: note: Shadowed variable LLNL-H5Z-ZFP-092190c/test/test_error.c:192:16: note: Shadow local variable DONE