2026-05-03 07:56 ftp://ftp.de.debian.org/debian/pool/main/libs/libsigsegv/libsigsegv_2.15.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 59 59 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: libsigsegv-2.15/src/dispatcher.c:120:19: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:221:34: note: Calling function 'insert', 1st argument 'new_node' value is 0 libsigsegv-2.15/src/dispatcher.c:120:19: note: Null pointer dereference libsigsegv-2.15/src/dispatcher.c:217:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:217:7: note: Null pointer dereference libsigsegv-2.15/src/dispatcher.c:218:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:218:7: note: Null pointer dereference libsigsegv-2.15/src/dispatcher.c:219:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:219:7: note: Null pointer dereference libsigsegv-2.15/src/dispatcher.c:220:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:220:7: note: Null pointer dereference libsigsegv-2.15/src/dispatcher.c:179:18: style: Local variable 'nodeplace' shadows outer variable [shadowVariable] libsigsegv-2.15/src/dispatcher.c:148:12: note: Shadowed declaration libsigsegv-2.15/src/dispatcher.c:179:18: note: Shadow variable libsigsegv-2.15/src/dispatcher.c:209:25: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/fault-linux-m68k-old.c:23:18: style: Variable 'framedata' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/fault-macosdarwin5-powerpc.c:37:17: style: Variable 'regs' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/fault-macosdarwin7-powerpc.c:39:17: style: Variable 'regs' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/handler-macos.c:239:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIGSEGV_THREAD_STATE_COUNT [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-macos.c:353:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_RCV_MSG [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-macos.c:409:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_PORT_RIGHT_RECEIVE [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-macos.c:489:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIGSEGV_THREAD_STATE_COUNT [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-macos.c:167:3: style:inconclusive: Statements following noreturn function 'raise()' will never be executed. [unreachableCode] libsigsegv-2.15/src/handler-macos.c:555:38: style: Parameter 'extra_stack' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/handler-macos.c:335:16: style: struct member 'Anonymous0::data' is never used. [unusedStructMember] libsigsegv-2.15/src/handler-macos.c:342:16: style: struct member 'Anonymous1::data' is never used. [unusedStructMember] libsigsegv-2.15/src/handler-none.c:40:38: style: Parameter 'extra_stack' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/handler-unix.c:387:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sigsegv_handler [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-unix.c:525:38: style: Parameter 'extra_stack' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/handler-win32.c:126:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_FREE [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-win32.c:158:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCEPTION_STACK_OVERFLOW [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-win32.c:320:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LPTOP_LEVEL_EXCEPTION_FILTER [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/handler-win32.c:202:21: style: Variable 'address' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/handler-win32.c:211:24: style: Variable 'orig_context' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/handler-win32.c:374:38: style: Parameter 'extra_stack' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/leave-setcontext.c:28:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SS_ONSTACK [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/leave-setcontext.c:25:7: portability: Obsolescent function 'getcontext' called. Applications are recommended to be rewritten to use POSIX threads. [prohibitedgetcontextCalled] libsigsegv-2.15/src/leave-sigaltstack.c:35:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_ONSTACK [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mincore.c:75:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGESIZE [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mincore.c:293:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mincore_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-aix.c:117:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-aix.c:316:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-aix.c:208:22: style: Variable 'mp' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/stackvma-aix.c:275:24: style: Variable 'vpi' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/stackvma-beos.c:86:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B_OK [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-beos.c:119:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-rofile.c:91:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-cygwin.c:120:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-rofile.c:248:27: style: Parameter 'rof' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/stackvma-vma-iter.c:231:38: style: Parameter 'locals' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/stackvma-freebsd.c:130:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-linux.c:93:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mach.c:51:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM_MIN_ADDRESS [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mach.c:33:28: style:inconclusive: Function 'sigsegv_get_vma' argument 1 names different: declaration 'address' definition 'req_address'. [funcArgNamesDifferent] libsigsegv-2.15/src/stackvma.h:47:39: note: Function 'sigsegv_get_vma' argument 1 names different: declaration 'address' definition 'req_address'. libsigsegv-2.15/src/stackvma-mach.c:33:28: note: Function 'sigsegv_get_vma' argument 1 names different: declaration 'address' definition 'req_address'. libsigsegv-2.15/src/stackvma-mquery.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGESIZE [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mquery.c:81:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_FIXED [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mquery.c:184:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_FIXED [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mquery.c:314:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mquery_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-mquery.c:140:29: style: Variable 'known_unmapped_page' is assigned a value that is never used. [unreadVariable] libsigsegv-2.15/src/stackvma-netbsd.c:124:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-none.c:20:56: style: Parameter 'vma' can be declared as pointer to const [constParameterPointer] libsigsegv-2.15/src/stackvma-procfs.c:271:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-procfs.c:389:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable simple_is_near_this [valueFlowBailoutIncompleteVar] libsigsegv-2.15/src/stackvma-procfs.c:330:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libsigsegv-2.15/src/stackvma-procfs.c:294:26: note: Assuming allocation function fails libsigsegv-2.15/src/stackvma-procfs.c:294:12: note: Assignment 'auxmap=(void*)mmap((void*)0,memneed,PROT_READ|PROT_WRITE,0|MAP_PRIVATE,zero_fd,0)', assigned value is 0 libsigsegv-2.15/src/stackvma-procfs.c:303:10: note: Assignment 'maps=(prmap_t*)auxmap', assigned value is 0 libsigsegv-2.15/src/stackvma-procfs.c:320:19: note: Assuming condition is false libsigsegv-2.15/src/stackvma-procfs.c:330:21: note: Null pointer addition libsigsegv-2.15/src/stackvma-procfs.c:253:12: style: Variable 'maps_end' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/stackvma-procfs.c:254:12: style: Variable 'mp' can be declared as pointer to const [constVariablePointer] libsigsegv-2.15/src/dispatcher.c:120:19: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [ctunullpointerOutOfMemory] libsigsegv-2.15/src/dispatcher.c:216:44: note: Assuming allocation function fails libsigsegv-2.15/src/dispatcher.c:216:26: note: Assignment 'new_node=(struct node_t*)malloc(sizeof(struct node_t))', assigned value is 0 libsigsegv-2.15/src/dispatcher.c:221:33: note: Calling function insert, 1st argument is null libsigsegv-2.15/src/dispatcher.c:120:19: note: Dereferencing argument new_node that is null diff: DONE