2025-11-25 05:58 ftp://ftp.de.debian.org/debian/pool/main/b/boxfort/boxfort_0.1.2.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-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 53 58 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: BoxFort-0.1.2/sample/callback.c:31:5: error: There is an unknown macro here somewhere. Configuration is required. If bxf_run is a macro then please configure it. [unknownMacro] BoxFort-0.1.2/sample/nested.c:19:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/sample/nested.c:26:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/sample/timeout.c:25:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable runtime [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/sample/context.c:40:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BXF_ARENA_IDENTITY [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/common.h:58:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/addr.c:38:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/arena.c:63:0: error: #error Platform not supported [preprocessorErrorDirective] BoxFort-0.1.2/src/addr.c:56:39: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] BoxFort-0.1.2/src/exe.h:50:47: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] BoxFort-0.1.2/src/exe-elf.c:50:0: error: #error Unsupported architecture [preprocessorErrorDirective] BoxFort-0.1.2/src/exe-mach-o.c:60:0: error: #error Unsupported architecture [preprocessorErrorDirective] BoxFort-0.1.2/src/exe-pe.c:39:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/exe-pe.c:94:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_EXECUTE_READWRITE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/exe-pe.c:112:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/exe-pe.c:124:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/exe-pe.c:134:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/exe-trampoline-fixup.c:89:38: style: Parameter 'func_to_patch' can be declared as pointer to const [constParameterPointer] BoxFort-0.1.2/src/sandbox-posix.c:339:0: error: #error Platform not supported [preprocessorErrorDirective] BoxFort-0.1.2/src/timeout-posix.c:90:0: error: #error No way to get a viable timespec. [preprocessorErrorDirective] BoxFort-0.1.2/src/sandbox.c:73:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox.c:99:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BXF_FOREVER [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/timeout-windows.c:38:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_OBJECT_0 [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/timeout-windows.c:49:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WT_EXECUTEDEFAULT [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/context.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/context.c:96:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BXF_ARENA_IDENTITY [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/context.c:307:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/context.c:359:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/timestamp.c:83:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/timestamp.c:113:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:43:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEM_FAILCRITICALERRORS [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:53:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_ALREADY_EXISTS [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:257:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HANDLE_FLAG_INHERIT [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:273:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HANDLE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:312:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HANDLE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:348:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/sandbox-windows.c:614:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BXF_FOREVER [valueFlowBailoutIncompleteVar] BoxFort-0.1.2/src/context.c:54:5: error: Memory leak: nctx [memleak] BoxFort-0.1.2/src/context.c:96:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] BoxFort-0.1.2/src/context.c:138:24: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] BoxFort-0.1.2/src/context.c:295:24: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] BoxFort-0.1.2/src/context.c:305:19: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] BoxFort-0.1.2/src/context.c:347:24: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] BoxFort-0.1.2/src/context.c:364:36: style: Variable 'elt' can be declared as pointer to const [constVariablePointer] BoxFort-0.1.2/src/context.c:387:49: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] BoxFort-0.1.2/src/sandbox-windows.c:450:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmdline [nullPointerOutOfMemory] BoxFort-0.1.2/src/sandbox-windows.c:420:33: note: Assuming allocation function fails BoxFort-0.1.2/src/sandbox-windows.c:420:33: note: Assignment 'cmdline=malloc(sizeof(TCHAR)*(size+1))', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:450:9: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:557:6: warning: If memory allocation fails, then there is a possible null pointer dereference: wctx [nullPointerOutOfMemory] BoxFort-0.1.2/src/sandbox-windows.c:556:39: note: Assuming allocation function fails BoxFort-0.1.2/src/sandbox-windows.c:556:39: note: Assignment 'wctx=malloc(sizeof(*wctx))', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:557:6: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:599:9: warning: Possible null pointer dereference: sb [nullPointer] BoxFort-0.1.2/src/sandbox-windows.c:597:31: note: Assignment 'sb=instance?((struct bxfi_sandbox*)(((char*)instance)-offsetof(struct bxfi_sandbox,props))):NULL', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:599:9: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:620:29: warning: Possible null pointer dereference: sb [nullPointer] BoxFort-0.1.2/src/sandbox-windows.c:619:31: note: Assignment 'sb=instance?((struct bxfi_sandbox*)(((char*)instance)-offsetof(struct bxfi_sandbox,props))):NULL', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:620:29: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:628:19: warning: Possible null pointer dereference: sb [nullPointer] BoxFort-0.1.2/src/sandbox-windows.c:627:31: note: Assignment 'sb=instance?((struct bxfi_sandbox*)(((char*)instance)-offsetof(struct bxfi_sandbox,props))):NULL', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:628:19: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:634:18: warning: Possible null pointer dereference: sb [nullPointer] BoxFort-0.1.2/src/sandbox-windows.c:633:31: note: Assignment 'sb=instance?((struct bxfi_sandbox*)(((char*)instance)-offsetof(struct bxfi_sandbox,props))):NULL', assigned value is 0 BoxFort-0.1.2/src/sandbox-windows.c:634:18: note: Null pointer dereference BoxFort-0.1.2/src/sandbox-windows.c:302:59: style: Parameter 'sandbox' can be declared as pointer to const [constParameterPointer] diff: 2.18.0 BoxFort-0.1.2/src/arena.c:63:3: error: #error Platform not supported [preprocessorErrorDirective] 2.18.0 BoxFort-0.1.2/src/exe-elf.c:50:3: error: #error Unsupported architecture [preprocessorErrorDirective] 2.18.0 BoxFort-0.1.2/src/exe-mach-o.c:60:3: error: #error Unsupported architecture [preprocessorErrorDirective] 2.18.0 BoxFort-0.1.2/src/sandbox-posix.c:339:3: error: #error Platform not supported [preprocessorErrorDirective] 2.18.0 BoxFort-0.1.2/src/timeout-posix.c:90:3: error: #error No way to get a viable timespec. [preprocessorErrorDirective] DONE