2025-05-05 18:06 ftp://ftp.de.debian.org/debian/pool/main/libf/libflorist/libflorist_2025.1.0.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-59-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: fcc0493 (2025-05-05 13:08:11 +0200) count: 55 55 elapsed-time: 2.8 2.8 head-timing-info: old-timing-info: head results: libflorist-2025.1.0/c-posix-signals.c:399:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:489:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:534:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:614:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:706:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:734:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix-signals.c:640:8: style: The if condition is the same as the previous if condition [duplicateCondition] libflorist-2025.1.0/c-posix-signals.c:625:8: note: First condition libflorist-2025.1.0/c-posix-signals.c:640:8: note: Second condition libflorist-2025.1.0/c-posix-signals.c:739:6: warning: If memory allocation fails, then there is a possible null pointer dereference: oksigs [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix-signals.c:735:28: note: Assuming allocation function fails libflorist-2025.1.0/c-posix-signals.c:735:13: note: Assignment 'oksigs=(int*)malloc(nsigs*sizeof(int))', assigned value is 0 libflorist-2025.1.0/c-posix-signals.c:739:6: note: Null pointer dereference libflorist-2025.1.0/c-posix-signals.c:739:18: warning: If memory allocation fails, then there is a possible null pointer dereference: oksigs_nodefault [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix-signals.c:736:38: note: Assuming allocation function fails libflorist-2025.1.0/c-posix-signals.c:736:23: note: Assignment 'oksigs_nodefault=(int*)malloc(nsigs*sizeof(int))', assigned value is 0 libflorist-2025.1.0/c-posix-signals.c:739:18: note: Null pointer dereference libflorist-2025.1.0/c-posix-signals.c:739:40: warning: If memory allocation fails, then there is a possible null pointer dereference: oksigs_stop [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix-signals.c:737:33: note: Assuming allocation function fails libflorist-2025.1.0/c-posix-signals.c:737:18: note: Assignment 'oksigs_stop=(int*)malloc(nsigs*sizeof(int))', assigned value is 0 libflorist-2025.1.0/c-posix-signals.c:739:40: note: Null pointer dereference libflorist-2025.1.0/c-posix-signals.c:395:9: style: Parameter 'oksigs' can be declared as pointer to const [constParameterPointer] libflorist-2025.1.0/c-posix-signals.c:395:22: style: Parameter 'oksigs_nodefault' can be declared as pointer to const [constParameterPointer] libflorist-2025.1.0/c-posix-signals.c:395:45: style: Parameter 'oksigs_stop' can be declared as pointer to const [constParameterPointer] libflorist-2025.1.0/c-posix.c:936:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tcflag_t [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:1617:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:2500:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:2745:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:3107:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:4327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/c-posix.c:5222:47: style: Condition 'first_bad=-1' is always true [knownConditionTrueFalse] libflorist-2025.1.0/c-posix.c:2024:5: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libflorist-2025.1.0/c-posix.c:1651:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1651:3: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1652:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1652:3: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1654:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1654:3: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1655:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1655:10: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1656:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1656:3: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1664:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1664:5: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1665:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1665:12: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1667:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libflorist-2025.1.0/c-posix.c:1650:15: note: Assuming allocation function fails libflorist-2025.1.0/c-posix.c:1650:15: note: Assignment 'tmp=malloc(sizeof(struct type_t))', assigned value is 0 libflorist-2025.1.0/c-posix.c:1667:3: note: Null pointer dereference libflorist-2025.1.0/c-posix.c:1645:11: style: Variable 'tmp' is reassigned a value before the old one has been used. [redundantAssignment] libflorist-2025.1.0/c-posix.c:1644:7: note: tmp is assigned libflorist-2025.1.0/c-posix.c:1645:11: note: tmp is overwritten libflorist-2025.1.0/c-posix.c:1684:12: style: Variable 'type' is reassigned a value before the old one has been used. [redundantAssignment] libflorist-2025.1.0/c-posix.c:1683:8: note: type is assigned libflorist-2025.1.0/c-posix.c:1684:12: note: type is overwritten libflorist-2025.1.0/c-posix.c:2409:36: style:inconclusive: Function 'gmaxnn' argument 2 names different: declaration 'lower_bound' definition 'bound'. [funcArgNamesDifferent] libflorist-2025.1.0/c-posix.c:372:36: note: Function 'gmaxnn' argument 2 names different: declaration 'lower_bound' definition 'bound'. libflorist-2025.1.0/c-posix.c:2409:36: note: Function 'gmaxnn' argument 2 names different: declaration 'lower_bound' definition 'bound'. libflorist-2025.1.0/c-posix.c:2427:36: style:inconclusive: Function 'gmaxii' argument 2 names different: declaration 'lower_bound' definition 'bound'. [funcArgNamesDifferent] libflorist-2025.1.0/c-posix.c:370:36: note: Function 'gmaxii' argument 2 names different: declaration 'lower_bound' definition 'bound'. libflorist-2025.1.0/c-posix.c:2427:36: note: Function 'gmaxii' argument 2 names different: declaration 'lower_bound' definition 'bound'. libflorist-2025.1.0/c-posix.c:1725:19: style: Local variable 'p' shadows outer variable [shadowVariable] libflorist-2025.1.0/c-posix.c:1680:23: note: Shadowed declaration libflorist-2025.1.0/c-posix.c:1725:19: note: Shadow variable libflorist-2025.1.0/c-posix.c:1762:19: style: Local variable 'p' shadows outer variable [shadowVariable] libflorist-2025.1.0/c-posix.c:1680:23: note: Shadowed declaration libflorist-2025.1.0/c-posix.c:1762:19: note: Shadow variable libflorist-2025.1.0/c-posix.c:1078:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1079:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1080:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1081:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1082:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1130:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:1143:3: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] libflorist-2025.1.0/c-posix.c:646:8: style: union member 'sigval::sival_int' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:647:10: style: union member 'sigval::sival_ptr' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:859:12: style: struct member 'sigaction::sa_sigaction' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:1188:12: style: struct member 'msghdr::msg_control' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:1189:12: style: struct member 'msghdr::msg_controllen' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:1190:9: style: struct member 'msghdr::msg_flags' is never used. [unusedStructMember] libflorist-2025.1.0/c-posix.c:1680:23: style: Unused variable: p [unusedVariable] libflorist-2025.1.0/c-posix.c:3100:9: style: Unused variable: count [unusedVariable] libflorist-2025.1.0/libsrc/posix-macros.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/libsrc/posix-macros.c:218:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libflorist-2025.1.0/libsrc/posix-macros.c:125:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libflorist-2025.1.0/libsrc/posix-macros.c:141:30: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libflorist-2025.1.0/libsrc/posix-macros.c:157:30: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] diff: DONE