2026-05-03 08:33 ftp://ftp.de.debian.org/debian/pool/main/libt/libtime-y2038-perl/libtime-y2038-perl_20100403.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: 29 14 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: Time-y2038-20100403/check_max.c:186:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Time-y2038-20100403/check_max.c:266:42: error: Allocation with tm_as_json, printf doesn't release it. [leakNoVarFunctionCall] Time-y2038-20100403/check_max.c:267:41: error: Allocation with tm_as_json, printf doesn't release it. [leakNoVarFunctionCall] Time-y2038-20100403/check_max.c:37:16: style: Variable 'date' can be declared as pointer to const [constVariablePointer] Time-y2038-20100403/check_max.c:66:16: style: Variable 'date' can be declared as pointer to const [constVariablePointer] Time-y2038-20100403/check_max.c:229:16: style: Variable 'mktime_max' can be declared as pointer to const [constVariablePointer] Time-y2038-20100403/check_max.c:230:16: style: Variable 'mktime_min' can be declared as pointer to const [constVariablePointer] Time-y2038-20100403/y2038/time64.c:524:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSTEM_MKTIME_MIN [valueFlowBailoutIncompleteVar] Time-y2038-20100403/y2038/time64.c:461:38: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Time-y2038-20100403/y2038/time64.c:478:38: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] Time-y2038-20100403/y2038/time64.c:654:20: style: Condition 'p->tm_year!=year' is always false [knownConditionTrueFalse] Time-y2038-20100403/y2038/time64.c:653:16: note: p->tm_year is assigned 'year' here. Time-y2038-20100403/y2038/time64.c:654:20: note: Condition 'p->tm_year!=year' is always false Time-y2038-20100403/y2038/time64.c:724:27: style: Condition 'local_tm->tm_year!=orig_year' is always false [knownConditionTrueFalse] Time-y2038-20100403/y2038/time64.c:723:23: note: local_tm->tm_year is assigned 'orig_year' here. Time-y2038-20100403/y2038/time64.c:724:27: note: Condition 'local_tm->tm_year!=orig_year' is always false Time-y2038-20100403/y2038/time64.c:232:36: style:inconclusive: Function 'timegm64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:518:36: style:inconclusive: Function 'mktime64' argument 1 names different: declaration '' definition 'input_date'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:544:39: style:inconclusive: Function 'timelocal64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:549:40: style:inconclusive: Function 'gmtime64_r' argument 1 names different: declaration '' definition 'in_time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:549:60: style:inconclusive: Function 'gmtime64_r' argument 2 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:676:43: style:inconclusive: Function 'localtime64_r' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:676:60: style:inconclusive: Function 'localtime64_r' argument 2 names different: declaration '' definition 'local_tm'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:781:37: style:inconclusive: Function 'asctime64_r' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:781:49: style:inconclusive: Function 'asctime64_r' argument 2 names different: declaration '' definition 'result'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:798:34: style:inconclusive: Function 'ctime64_r' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:798:46: style:inconclusive: Function 'ctime64_r' argument 2 names different: declaration '' definition 'result'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:807:40: style:inconclusive: Function 'localtime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:812:37: style:inconclusive: Function 'gmtime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:816:35: style:inconclusive: Function 'asctime64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:820:32: style:inconclusive: Function 'ctime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] Time-y2038-20100403/y2038/time64.c:279:32: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] Time-y2038-20100403/y2038/time64.c:237:22: style: Variable 'cycles' is assigned a value that is never used. [unreadVariable] diff: head Time-y2038-20100403/y2038/time64.c:232:36: style:inconclusive: Function 'timegm64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:518:36: style:inconclusive: Function 'mktime64' argument 1 names different: declaration '' definition 'input_date'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:544:39: style:inconclusive: Function 'timelocal64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:549:40: style:inconclusive: Function 'gmtime64_r' argument 1 names different: declaration '' definition 'in_time'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:549:60: style:inconclusive: Function 'gmtime64_r' argument 2 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:676:43: style:inconclusive: Function 'localtime64_r' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:676:60: style:inconclusive: Function 'localtime64_r' argument 2 names different: declaration '' definition 'local_tm'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:781:37: style:inconclusive: Function 'asctime64_r' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:781:49: style:inconclusive: Function 'asctime64_r' argument 2 names different: declaration '' definition 'result'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:798:34: style:inconclusive: Function 'ctime64_r' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:798:46: style:inconclusive: Function 'ctime64_r' argument 2 names different: declaration '' definition 'result'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:807:40: style:inconclusive: Function 'localtime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:812:37: style:inconclusive: Function 'gmtime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:816:35: style:inconclusive: Function 'asctime64' argument 1 names different: declaration '' definition 'date'. [funcArgNamesDifferentUnnamed] head Time-y2038-20100403/y2038/time64.c:820:32: style:inconclusive: Function 'ctime64' argument 1 names different: declaration '' definition 'time'. [funcArgNamesDifferentUnnamed] DONE