2026-05-30 11:34 ftp://ftp.de.debian.org/debian/pool/main/t/tdfsb/tdfsb_0.0.10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=sdl --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 -j4 platform: Linux-7.0.7+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: bc2b84dd (2026-05-29 17:18:27 +0200) count: 62 60 elapsed-time: 3.3 3.1 head-timing-info: old-timing-info: head results: tdfsb-0.0.10/tdfsb.c:344:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:374:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:445:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:503:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1113:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLU_ERROR [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1475:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1802:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1846:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMPEG_ERROR [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2342:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PRESSED [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2445:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDFSB_FUNC_MOTION [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2674:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_UP [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2745:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_OPENGL [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2952:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1144:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tdfsb-0.0.10/tdfsb.c:1154:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tdfsb-0.0.10/tdfsb.c:1457:49: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1457:110: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1463:73: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1464:67: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1465:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1481:79: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1492:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1500:57: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1500:118: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1506:81: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1507:75: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1508:67: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1514:61: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1520:49: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1521:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1539:24: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1549:17: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1611:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1611:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1619:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:399:55: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: screen [nullPointerOutOfResources] tdfsb-0.0.10/tdfsb.c:374:34: note: Assuming allocation function fails tdfsb-0.0.10/tdfsb.c:374:34: note: Assignment 'screen=SDL_CreateRGBSurface(SDL_SWSURFACE,www,hhh,32,0x000000FF,0x0000FF00,0x00FF0000,0xFF000000)', assigned value is 0 tdfsb-0.0.10/tdfsb.c:388:9: note: Assuming condition is false tdfsb-0.0.10/tdfsb.c:399:55: note: Null pointer dereference tdfsb-0.0.10/tdfsb.c:1609:10: style: Variable 'help' is reassigned a value before the old one has been used. [redundantAssignment] tdfsb-0.0.10/tdfsb.c:1608:6: note: help is assigned tdfsb-0.0.10/tdfsb.c:1609:10: note: help is overwritten tdfsb-0.0.10/tdfsb.c:434:13: style: Checking if unsigned expression 'www' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:434:23: style: Checking if unsigned expression 'hhh' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:1299:11: style: Checking if unsigned expression 'count' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:2479:24: warning: Either the condition 'TDFSB_FPS_CONFIG' is redundant or there is division by zero at line 2479. [zerodivcond] tdfsb-0.0.10/tdfsb.c:2481:8: note: Assuming that condition 'TDFSB_FPS_CONFIG' is not redundant tdfsb-0.0.10/tdfsb.c:2479:24: note: Division by zero tdfsb-0.0.10/tdfsb.c:354:16: style: Local variable 'info' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:53:22: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:354:16: note: Shadow local variable tdfsb-0.0.10/tdfsb.c:1223:25: style: Local variable 'temp' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:155:67: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1223:25: note: Shadow local variable tdfsb-0.0.10/tdfsb.c:1221:20: style: Argument 'value' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:291:7: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1221:20: note: Shadow argument tdfsb-0.0.10/tdfsb.c:1221:84: style: Argument 'type' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:298:6: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1221:84: note: Shadow argument tdfsb-0.0.10/tdfsb.c:1221:20: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tdfsb-0.0.10/tdfsb.c:1271:17: style: Variable 'ls_ent' can be declared as pointer to const [constVariablePointer] tdfsb-0.0.10/tdfsb.c:1360:30: style: Variable 'temptype' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:37: style: Variable 'uni0' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:44: style: Variable 'uni1' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:51: style: Variable 'uni2' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1536:65: style: Variable 'momx' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1840:16: style: Unused variable: errCode [unusedVariable] tdfsb-0.0.10/tdfsb.c:2415:9: style: Unused variable: i [unusedVariable] diff: head tdfsb-0.0.10/tdfsb.c:1221:20: style: Argument 'value' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:291:7: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1221:20: note: Shadow argument head tdfsb-0.0.10/tdfsb.c:1221:84: style: Argument 'type' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:298:6: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1221:84: note: Shadow argument 2.20.0 tdfsb-0.0.10/tdfsb.c:1223:25: style: Local variable 'temp' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:155:67: note: Shadowed declaration tdfsb-0.0.10/tdfsb.c:1223:25: note: Shadow variable head tdfsb-0.0.10/tdfsb.c:1223:25: style: Local variable 'temp' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:155:67: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:1223:25: note: Shadow local variable 2.20.0 tdfsb-0.0.10/tdfsb.c:354:16: style: Local variable 'info' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:53:22: note: Shadowed declaration tdfsb-0.0.10/tdfsb.c:354:16: note: Shadow variable head tdfsb-0.0.10/tdfsb.c:354:16: style: Local variable 'info' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:53:22: note: Shadowed variable tdfsb-0.0.10/tdfsb.c:354:16: note: Shadow local variable DONE