2022-06-23 08:40 ftp://ftp.de.debian.org/debian/pool/main/libs/libsereal-decoder-perl/libsereal-decoder-perl_4.023+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: f1212e6 (2022-06-22 21:22:04 +0200) count: 44 44 elapsed-time: 26.0 46.1 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: Sereal-Decoder-4.023/author_tools/stringify_test.c:91:24: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Sereal-Decoder-4.023/author_tools/stringify_test.c:91:24: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Sereal-Decoder-4.023/author_tools/stringify_test.c:91:24: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Sereal-Decoder-4.023/author_tools/stringify_test.c:91:24: warning: %i in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Sereal-Decoder-4.023/author_tools/stringify_test.c:69:11: style: Unused variable: o [unusedVariable] Sereal-Decoder-4.023/author_tools/stringify_test.c:70:10: style: Unused variable: outstr [unusedVariable] Sereal-Decoder-4.023/snappy/csnappy_internal.h:86:0: error: #error either __LITTLE_ENDIAN or __BIG_ENDIAN, plus __BYTE_ORDER must be defined [preprocessorErrorDirective] Sereal-Decoder-4.023/miniz.c:3335:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Sereal-Decoder-4.023/miniz.c:3367:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] Sereal-Decoder-4.023/miniz.c:3697:21: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] Sereal-Decoder-4.023/miniz.c:3695:50: note: 'extra_size_remaining' is assigned value 'ext_data_size' here. Sereal-Decoder-4.023/miniz.c:3691:18: note: outer condition: ext_data_size Sereal-Decoder-4.023/miniz.c:3697:21: note: identical inner condition: extra_size_remaining Sereal-Decoder-4.023/miniz.c:1272:9: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:1275:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:1300:17: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:1315:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:1318:17: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:7183:36: style: Comparing expression of type 'unsigned int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] Sereal-Decoder-4.023/miniz.c:6093:38: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] Sereal-Decoder-4.023/miniz.c:6116:10: note: Assuming that condition '!pZip' is not redundant Sereal-Decoder-4.023/miniz.c:6093:38: note: Null pointer dereference Sereal-Decoder-4.023/miniz.c:6379:60: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] Sereal-Decoder-4.023/miniz.c:6396:10: note: Assuming that condition '!pZip' is not redundant Sereal-Decoder-4.023/miniz.c:6379:60: note: Null pointer dereference Sereal-Decoder-4.023/miniz.c:2394:81: error: Pointer addition with NULL pointer. [nullPointerArithmetic] Sereal-Decoder-4.023/miniz.c:2864:137: note: Calling function 'tinfl_decompress', 5th argument 'pBuf?(unsigned char*)pBuf+*pOut_len:NULL' value is 0 Sereal-Decoder-4.023/miniz.c:2394:81: note: Null pointer addition Sereal-Decoder-4.023/miniz.c:6093:15: style:inconclusive: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. [duplicateAssignExpression] Sereal-Decoder-4.023/miniz.c:6093:60: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. Sereal-Decoder-4.023/miniz.c:6093:15: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. Sereal-Decoder-4.023/miniz.c:1272:9: style: Unsigned expression '(1U<m_num_bits [uninitvar] Sereal-Decoder-4.023/miniz.c:2897:31: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is Sereal-Decoder-4.023/miniz.c:2398:55: note: Assuming condition is Assuming condition is false Sereal-Decoder-4.023/miniz.c:2404:19: note: Uninitialized variable: r->m_num_bits Sereal-Decoder-4.023/miniz.c:1024:9: style: Variable 'rle_repeat_count' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:1028:9: style: Variable 'rle_z_count' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:3556:44: style: Variable 'zip64_end_of_central_dir_ofs' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:4219:37: style: Variable 'pField_data' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:4220:46: style: Variable 'field_data_remaining' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:4670:26: style: Variable 'cur_file_ofs' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:4672:28: style: Variable 'comp_remaining' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:6939:42: style: Variable 'local_header_uncomp_size' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:6940:40: style: Variable 'local_header_comp_size' is assigned a value that is never used. [unreadVariable] Sereal-Decoder-4.023/miniz.c:7069:26: style: Variable 'cur_src_file_ofs' is assigned a value that is never used. [unreadVariable] diff: DONE