2026-05-03 12:51 ftp://ftp.de.debian.org/debian/pool/main/m/mergelog/mergelog_4.5.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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: 7 7 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: mergelog-4.5.1/src/mergelog.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mergelog-4.5.1/src/mergelog.c:311:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mergelog-4.5.1/src/mergelog.c:347:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mergelog-4.5.1/src/mergelog.c:204:30: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mergelog-4.5.1/src/mergelog.c:203:25: note: Assuming allocation function fails mergelog-4.5.1/src/mergelog.c:203:25: note: Assignment 'log_buffer[i]=malloc(32768)', assigned value is 0 mergelog-4.5.1/src/mergelog.c:204:30: note: Null pointer addition mergelog-4.5.1/src/mergelog.c:94:27: style: Parameter 'argv' can be declared as const array [constParameter] mergelog-4.5.1/src/mergelog.c:103:9: style: Variable 'log_date' can be declared as pointer to const [constVariablePointer] mergelog-4.5.1/src/mergelog.c:111:8: style: Variable 'months' can be declared as const array [constVariable] diff: DONE