2025-07-02 00:31 ftp://ftp.de.debian.org/debian/pool/main/b/borgbackup/borgbackup_1.4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --library=openmp --library=openssl --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-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: f4eb733 (2025-07-01 13:53:18 +0200) count: 57 43 elapsed-time: 1.3 1.3 head-timing-info: old-timing-info: head results: borgbackup-1.4.1/src/borg/_endian.h:21:0: error: #error Unknown byte order [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/_endian.h:21:2: error: #error Unknown byte order [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/_chunker.c:190:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_OSError [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/_chunker.c:259:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_StopIteration [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/_chunker.c:80:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:77:29: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:77:29: note: Assignment 'table=malloc(1024)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:80:9: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:121:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:121:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:122:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:122:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:123:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:123:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:124:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:124:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:125:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:125:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:126:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:126:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:126:22: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:126:22: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:127:5: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:127:5: note: Null pointer dereference borgbackup-1.4.1/src/borg/_chunker.c:293:18: style: Variable 'stop_at' can be declared as pointer to const [constVariablePointer] borgbackup-1.4.1/src/borg/_item.c:32:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/algorithms/checksums.c:49:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/algorithms/checksums.c:49:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/algorithms/crc32_clmul.c:269:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pshufb_shf_table [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/algorithms/crc32_clmul.c:351:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crc_mask [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/algorithms/crc32_clmul.c:364:22: style: Local variable 'crc' shadows outer variable [shadowVariable] borgbackup-1.4.1/src/borg/algorithms/crc32_clmul.c:354:14: note: Shadowed declaration borgbackup-1.4.1/src/borg/algorithms/crc32_clmul.c:364:22: note: Shadow variable borgbackup-1.4.1/src/borg/cache_sync/unpack.h:142:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_item_begin [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:150:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_csize [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:201:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:208:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:215:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:221:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:227:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:237:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_entry_begin_or_chunks_end [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:298:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_entry_begin_or_chunks_end [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:324:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_item_begin [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:352:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:398:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_size [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:424:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/unpack.h:432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expect_map_key [valueFlowBailoutIncompleteVar] borgbackup-1.4.1/src/borg/cache_sync/cache_sync.c:112:42: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] borgbackup-1.4.1/src/borg/chunker.c:44:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/chunker.c:44:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/compress.c:51:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/compress.c:51:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/crypto/low_level.c:67:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/crypto/low_level.c:67:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/hashindex.c:45:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/hashindex.c:45:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/item.c:41:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/item.c:41:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/darwin.c:36:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/darwin.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/freebsd.c:36:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/freebsd.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/linux.c:39:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/linux.c:39:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/posix.c:36:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/posix.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/syncfilerange.c:36:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/syncfilerange.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/windows.c:36:0: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] borgbackup-1.4.1/src/borg/platform/windows.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] diff: head borgbackup-1.4.1/src/borg/_chunker.c:126:22: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assuming allocation function fails borgbackup-1.4.1/src/borg/_chunker.c:120:24: note: Assignment 'c=calloc(sizeof(struct Chunker),1)', assigned value is 0 borgbackup-1.4.1/src/borg/_chunker.c:126:22: note: Null pointer dereference head borgbackup-1.4.1/src/borg/_endian.h:21:2: error: #error Unknown byte order [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/algorithms/checksums.c:49:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/chunker.c:44:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/compress.c:51:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/crypto/low_level.c:67:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/hashindex.c:45:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/item.c:41:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/darwin.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/freebsd.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/linux.c:39:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/posix.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/syncfilerange.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] head borgbackup-1.4.1/src/borg/platform/windows.c:36:6: error: #error Python headers needed to compile C extensions, please install development version of Python. [preprocessorErrorDirective] DONE