2025-06-28 17:59 ftp://ftp.de.debian.org/debian/pool/main/libs/libstreamvbyte/libstreamvbyte_0.5.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 -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: b6dd286 (2025-06-27 13:53:34 +0200) count: 30 30 elapsed-time: 656.5 156.6 head-timing-info: old-timing-info: head results: streamvbyte-0.5.1/example.c:13:3: warning: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/example.c:9:28: note: Assuming allocation function fails streamvbyte-0.5.1/example.c:9:28: note: Assignment 'datain=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/example.c:13:3: note: Null pointer dereference streamvbyte-0.5.1/src/streamvbyte_zigzag.c:6:37: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] streamvbyte-0.5.1/tests/perf.c:52:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] streamvbyte-0.5.1/src/streamvbyte_0124_encode.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] streamvbyte-0.5.1/utils/shuffle_tables.c:171:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] streamvbyte-0.5.1/tests/writeseq.c:13:5: warning: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/writeseq.c:9:28: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:9:28: note: Assignment 'datain=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:13:5: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:18:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: compressedbuffer [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assignment 'compressedbuffer=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:18:22: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:18:53: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] streamvbyte-0.5.1/tests/writeseq.c:17:18: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:17:18: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:18:53: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:19:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] streamvbyte-0.5.1/tests/writeseq.c:17:18: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:17:18: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:19:10: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:26:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: compressedbuffer [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assignment 'compressedbuffer=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:26:5: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:27:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: compressedbuffer [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:10:37: note: Assignment 'compressedbuffer=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:27:21: note: Null pointer dereference streamvbyte-0.5.1/tests/writeseq.c:27:52: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] streamvbyte-0.5.1/tests/writeseq.c:24:12: note: Assuming allocation function fails streamvbyte-0.5.1/tests/writeseq.c:24:12: note: Assignment 'f=fopen(filename,"r")', assigned value is 0 streamvbyte-0.5.1/tests/writeseq.c:27:52: note: Null pointer dereference streamvbyte-0.5.1/utils/shuffle_tables.c:130:36: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] streamvbyte-0.5.1/utils/shuffle_tables.c:157:46: note: Assuming allocation function fails streamvbyte-0.5.1/utils/shuffle_tables.c:157:28: note: Assignment 'decoder_table=(uint8_t*)malloc(sizeof(uint8_t[256][16]))', assigned value is 0 streamvbyte-0.5.1/utils/shuffle_tables.c:181:21: note: Calling function 'print_permutation', 1st argument 'decoder_table' value is 0 streamvbyte-0.5.1/utils/shuffle_tables.c:130:36: note: Null pointer dereference streamvbyte-0.5.1/utils/shuffle_tables.c:131:34: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] streamvbyte-0.5.1/utils/shuffle_tables.c:157:46: note: Assuming allocation function fails streamvbyte-0.5.1/utils/shuffle_tables.c:157:28: note: Assignment 'decoder_table=(uint8_t*)malloc(sizeof(uint8_t[256][16]))', assigned value is 0 streamvbyte-0.5.1/utils/shuffle_tables.c:181:21: note: Calling function 'print_permutation', 1st argument 'decoder_table' value is 0 streamvbyte-0.5.1/utils/shuffle_tables.c:131:34: note: Null pointer dereference streamvbyte-0.5.1/utils/shuffle_tables.c:63:58: style: Parameter 'lengths' can be declared as pointer to const [constParameterPointer] streamvbyte-0.5.1/utils/shuffle_tables.c:105:63: style: Parameter 'lengths' can be declared as pointer to const [constParameterPointer] streamvbyte-0.5.1/utils/shuffle_tables.c:125:40: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] streamvbyte-0.5.1/utils/shuffle_tables.c:142:36: style: Parameter 'length' can be declared as pointer to const [constParameterPointer] streamvbyte-0.5.1/tests/unit.c:14:14: style: Return value '*c==1' is always true [knownConditionTrueFalse] streamvbyte-0.5.1/tests/unit.c:12:11: note: Assignment 'x=1', assigned value is 1 streamvbyte-0.5.1/tests/unit.c:14:14: note: Return value '*c==1' is always true streamvbyte-0.5.1/tests/unit.c:2765:21: style: Condition 'isLittleEndian()' is always true [knownConditionTrueFalse] streamvbyte-0.5.1/tests/unit.c:12:11: note: Assignment 'x=1', assigned value is 1 streamvbyte-0.5.1/tests/unit.c:2765:21: note: Calling function 'isLittleEndian' returns 1 streamvbyte-0.5.1/tests/unit.c:2765:21: note: Condition 'isLittleEndian()' is always true streamvbyte-0.5.1/tests/unit.c:22:7: warning: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:20:29: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:20:29: note: Assignment 'datain=malloc(N*sizeof(int32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:22:7: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:36:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:20:29: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:20:29: note: Assignment 'datain=malloc(N*sizeof(int32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:36:10: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:36:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: databack [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:24:31: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:24:31: note: Assignment 'databack=malloc(N*sizeof(int32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:36:23: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:40:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:20:29: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:20:29: note: Assignment 'datain=malloc(N*sizeof(int32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:40:10: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:40:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: deltadataback [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:27:36: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:27:36: note: Assignment 'deltadataback=malloc(N*sizeof(int32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:40:23: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:96:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datain [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:86:28: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:86:28: note: Assignment 'datain=malloc(N*sizeof(uint32_t))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:96:9: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:2727:5: warning: If memory allocation fails, then there is a possible null pointer dereference: compressedbuffer [nullPointerOutOfMemory] streamvbyte-0.5.1/tests/unit.c:2724:37: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:2724:37: note: Assignment 'compressedbuffer=malloc((COMPRESSED_SIZE)*sizeof(uint8_t)+16)', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:2727:5: note: Null pointer dereference streamvbyte-0.5.1/tests/unit.c:90:52: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] streamvbyte-0.5.1/tests/unit.c:89:13: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:89:13: note: Assignment 'compressedbufferorig=malloc(streamvbyte_max_compressedbytes(N))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:90:52: note: Null pointer addition streamvbyte-0.5.1/tests/unit.c:13:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] streamvbyte-0.5.1/tests/unit.c:285:11: style: Variable 'a' can be declared as const array [constVariable] diff: 2.17.0 streamvbyte-0.5.1/tests/unit.c:90:52: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] streamvbyte-0.5.1/tests/unit.c:89:13: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:89:13: note: Assignment 'compressedbufferorig=malloc(streamvbyte_max_compressedbytes(N))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:90:52: note: Null pointer addition head streamvbyte-0.5.1/tests/unit.c:90:52: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] streamvbyte-0.5.1/tests/unit.c:89:13: note: Assuming allocation function fails streamvbyte-0.5.1/tests/unit.c:89:13: note: Assignment 'compressedbufferorig=malloc(streamvbyte_max_compressedbytes(N))', assigned value is 0 streamvbyte-0.5.1/tests/unit.c:90:52: note: Null pointer addition DONE