2025-05-05 15:38 ftp://ftp.de.debian.org/debian/pool/main/liba/libansilove/libansilove_1.4.1.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 33 33 elapsed-time: 1.3 1.5 head-timing-info: old-timing-info: head results: libansilove-1.4.1/compat/reallocarray.c:33:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] libansilove-1.4.1/compat/strtonum.c:40:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/error.c:19:37: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libansilove-1.4.1/src/init.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/artworx.c:42:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/artworx.c:56:6: style: Condition '!width' is always false [knownConditionTrueFalse] libansilove-1.4.1/src/loaders/artworx.c:53:10: note: Assignment 'width=640', assigned value is 640 libansilove-1.4.1/src/loaders/artworx.c:56:6: note: Condition '!width' is always false libansilove-1.4.1/src/loaders/artworx.c:31:33: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] libansilove-1.4.1/src/loaders/ansi.c:95:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/binary.c:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/binary.c:31:33: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] libansilove-1.4.1/src/loaders/icedraw.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/icedraw.c:35:11: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] libansilove-1.4.1/src/loaders/pcboard.c:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/pcboard.c:47:11: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] libansilove-1.4.1/src/loaders/ansi.c:233:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:238:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:242:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:395:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:447:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:484:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:488:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:490:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/ansi.c:492:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libansilove-1.4.1/src/loaders/tundra.c:49:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/ansi.c:266:15: style: Local variable 'seq_line' shadows outer variable [shadowVariable] libansilove-1.4.1/src/loaders/ansi.c:79:21: note: Shadowed declaration libansilove-1.4.1/src/loaders/ansi.c:266:15: note: Shadow variable libansilove-1.4.1/src/loaders/ansi.c:288:15: style: Local variable 'seq_line' shadows outer variable [shadowVariable] libansilove-1.4.1/src/loaders/ansi.c:79:21: note: Shadowed declaration libansilove-1.4.1/src/loaders/ansi.c:288:15: note: Shadow variable libansilove-1.4.1/src/loaders/ansi.c:307:15: style: Local variable 'seq_column' shadows outer variable [shadowVariable] libansilove-1.4.1/src/loaders/ansi.c:79:31: note: Shadowed declaration libansilove-1.4.1/src/loaders/ansi.c:307:15: note: Shadow variable libansilove-1.4.1/src/loaders/ansi.c:329:15: style: Local variable 'seq_column' shadows outer variable [shadowVariable] libansilove-1.4.1/src/loaders/ansi.c:79:31: note: Shadowed declaration libansilove-1.4.1/src/loaders/ansi.c:329:15: note: Shadow variable libansilove-1.4.1/src/loadfile.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/loaders/xbin.c:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/output.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_GD_ERROR [valueFlowBailoutIncompleteVar] libansilove-1.4.1/src/output.c:21:59: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] libansilove-1.4.1/src/savefile.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ANSILOVE_INVALID_PARAM [valueFlowBailoutIncompleteVar] diff: DONE