2026-05-31 10:29 ftp://ftp.de.debian.org/debian/pool/main/y/yaws/yaws_2.2.0+dfsg.orig.tar.xz 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-124-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: 8c14fc7 (2026-05-31 09:56:45 +0200) count: 40 39 elapsed-time: 0.4 0.9 head-timing-info: old-timing-info: head results: yaws-yaws-2.2.0/c_src/epam.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:48:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:98:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_CONV_ERR [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:241:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:306:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:353:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/epam.c:42:37: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/c_src/epam.c:225:64: style: Parameter 'phase' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/c_src/epam.c:297:52: style: Parameter 'pwd' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/c_src/epam.c:297:63: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/c_src/hashtable.c:30:33: style:inconclusive: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. [funcArgNamesDifferent] yaws-yaws-2.2.0/c_src/hashtable.h:76:33: note: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. yaws-yaws-2.2.0/c_src/hashtable.c:30:33: note: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. yaws-yaws-2.2.0/c_src/hashtable.c:31:24: style:inconclusive: Function 'create_hashtable' argument 3 names different: declaration '' definition 'eqf'. [funcArgNamesDifferentUnnamed] yaws-yaws-2.2.0/c_src/hashtable.c:130:35: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/c_src/setuid_drv.c:30:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/setuid_drv.c:135:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERL_DRV_EXTENDED_MARKER [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/c_src/setuid_drv.c:42:22: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] yaws-yaws-2.2.0/c_src/setuid_drv.c:58:22: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] yaws-yaws-2.2.0/c_src/setuid_drv.c:75:22: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] yaws-yaws-2.2.0/c_src/setuid_drv.c:86:22: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] yaws-yaws-2.2.0/c_src/setuid_drv.c:29:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/c_src/setuid_drv.c:31:20: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:17:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/win32/yaws.c:59:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/win32/yaws.c:75:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/win32/yaws.c:130:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] yaws-yaws-2.2.0/win32/yaws.c:239:16: style: Condition 'mnesia!=NULL' is always true [knownConditionTrueFalse] yaws-yaws-2.2.0/win32/yaws.c:35:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fpath [nullPointerOutOfMemory] yaws-yaws-2.2.0/win32/yaws.c:26:35: note: Assuming allocation function fails yaws-yaws-2.2.0/win32/yaws.c:26:13: note: Assignment 'fpath=(unsigned char*)malloc(strlen((char*)path))', assigned value is 0 yaws-yaws-2.2.0/win32/yaws.c:35:5: note: Null pointer dereference yaws-yaws-2.2.0/win32/yaws.c:40:30: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/win32/yaws.c:40:40: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/win32/yaws.c:74:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] yaws-yaws-2.2.0/win32/yaws.c:123:11: style: Variable 'conf' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:124:11: style: Variable 'sname' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:125:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:127:11: style: Variable 'runmod' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:128:11: style: Variable 'trace' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:129:11: style: Variable 'traceoutput' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:135:11: style: Variable 'id' can be declared as pointer to const [constVariablePointer] yaws-yaws-2.2.0/win32/yaws.c:223:48: warning: Uninitialized variable: erlarg [uninitvar] yaws-yaws-2.2.0/win32/yaws.c:145:14: note: Assuming condition is false yaws-yaws-2.2.0/win32/yaws.c:223:48: note: Uninitialized variable: erlarg yaws-yaws-2.2.0/win32/yaws.c:212:20: error: Uninitialized variable: erlarg [legacyUninitvar] diff: head yaws-yaws-2.2.0/c_src/hashtable.c:30:33: style:inconclusive: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. [funcArgNamesDifferent] yaws-yaws-2.2.0/c_src/hashtable.h:76:33: note: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. yaws-yaws-2.2.0/c_src/hashtable.c:30:33: note: Function 'create_hashtable' argument 2 names different: declaration 'hashfunction' definition 'hashf'. head yaws-yaws-2.2.0/c_src/hashtable.c:31:24: style:inconclusive: Function 'create_hashtable' argument 3 names different: declaration '' definition 'eqf'. [funcArgNamesDifferentUnnamed] 2.20.0 yaws-yaws-2.2.0/c_src/setuid_drv.c:27:55: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'setuid_start' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yaws-yaws-2.2.0/c_src/setuid_drv.c:121:43: note: You might need to cast the function pointer here yaws-yaws-2.2.0/c_src/setuid_drv.c:27:55: note: Parameter 'buf' can be declared as pointer to const DONE