2025-11-25 05:58 ftp://ftp.de.debian.org/debian/pool/main/b/boxshade/boxshade_3.3.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 106 105 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: boxshade-3.1.1.orig/bx_types.h:117:1: debug: Failed to parse 'typedef char ( * * prenumtype ) [ ( 4 + 1 ) ] ;'. The checking continues anyway. [simplifyTypedef] boxshade-3.1.1.orig/dv_ansi.c:25:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ansi.c:98:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ansi.c:130:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ansi.c:139:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/bx_misc.c:30:25: style: Parameter 'arg0' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:32:9: style: Variable 'ap' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/bx_misc.c:45:25: style: Parameter 'logical' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:47:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/bx_misc.c:61:19: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:73:34: style: Parameter 'substring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:75:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/bx_misc.c:84:35: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:144:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/bx_misc.c:158:19: style: Parameter 's' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ansi.c:82:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_ansi.c:12:51: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ansi.c:12:62: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ascii.c:26:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ascii.c:81:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ascii.c:120:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/bx_read.c:6:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/bx_read.c:25:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/bx_read.c:144:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ascii.c:74:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_ascii.c:12:51: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ascii.c:12:62: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_fig.c:31:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_fig.c:150:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_hpgl.c:152:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_hpgl.c:256:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_fig.c:157:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_fig.c:18:57: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_fig.c:18:68: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_fig.c:183:54: style: Parameter 'ypos' can be declared as pointer to const. However it seems that 'FIGcharout' is a callback function, if 'ypos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] boxshade-3.1.1.orig/dv_fig.c:238:3: note: You might need to cast the function pointer here boxshade-3.1.1.orig/dv_fig.c:183:54: note: Parameter 'ypos' can be declared as pointer to const boxshade-3.1.1.orig/dv_hpgl.c:271:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_hpgl.c:135:60: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_hpgl.c:135:71: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_hpgl.c:310:55: style: Parameter 'ypos' can be declared as pointer to const. However it seems that 'HPGLcharout' is a callback function, if 'ypos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] boxshade-3.1.1.orig/dv_hpgl.c:343:3: note: You might need to cast the function pointer here boxshade-3.1.1.orig/dv_hpgl.c:310:55: note: Parameter 'ypos' can be declared as pointer to const boxshade-3.1.1.orig/box.c:563:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:877:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:911:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:1111:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:1196:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:1286:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:1550:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/box.c:1607:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_lj250.c:26:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_html.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_lj250.c:84:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_lj250.c:12:52: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_lj250.c:12:63: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:161:7: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_html.c:62:57: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:62:68: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:167:27: style: Parameter 'rgb' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:171:23: style: Parameter 'c1' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:171:32: style: Parameter 'c2' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:235:36: style: Parameter 's' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_html.c:236:9: style: Variable 'fc' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/dv_pict.c:66:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_pict.c:185:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ps.c:88:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_ps.c:187:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/bx_read.c:76:11: warning: Assert statement calls a function which may have desired side effects: 'feof'. [assertWithSideEffect] boxshade-3.1.1.orig/bx_read.c:7:10: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/bx_read.c:124:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] boxshade-3.1.1.orig/bx_read.c:329:18: warning: Either the condition 'infile!=NULL' is redundant or there is possible null pointer dereference: infile. [nullPointerRedundantCheck] boxshade-3.1.1.orig/bx_read.c:336:14: note: Assuming that condition 'infile!=NULL' is not redundant boxshade-3.1.1.orig/bx_read.c:329:18: note: Null pointer dereference boxshade-3.1.1.orig/bx_read.c:451:16: warning: Either the condition 'infile!=NULL' is redundant or there is possible null pointer dereference: infile. [nullPointerRedundantCheck] boxshade-3.1.1.orig/bx_read.c:472:14: note: Assuming that condition 'infile!=NULL' is not redundant boxshade-3.1.1.orig/bx_read.c:451:16: note: Null pointer dereference boxshade-3.1.1.orig/bx_read.c:441:9: style: Local variable 'infile' shadows outer variable [shadowVariable] boxshade-3.1.1.orig/bx_read.c:3:7: note: Shadowed declaration boxshade-3.1.1.orig/bx_read.c:441:9: note: Shadow variable boxshade-3.1.1.orig/dv_pict.c:204:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_pict.c:52:58: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_pict.c:52:69: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_pict.c:209:28: style: Parameter 'xpoint' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_pict.c:209:41: style: Parameter 'ypoint' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_pict.c:325:55: style: Parameter 'ypos' can be declared as pointer to const. However it seems that 'PICTcharout' is a callback function, if 'ypos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] boxshade-3.1.1.orig/dv_pict.c:424:3: note: You might need to cast the function pointer here boxshade-3.1.1.orig/dv_pict.c:325:55: note: Parameter 'ypos' can be declared as pointer to const boxshade-3.1.1.orig/dv_ps.c:202:7: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_ps.c:308:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] boxshade-3.1.1.orig/dv_ps.c:310:17: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] boxshade-3.1.1.orig/dv_ps.c:75:59: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ps.c:75:70: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ps.c:232:38: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ps.c:302:15: style: Variable 'tblock' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/dv_ps.c:346:28: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_ps.c:532:51: style: Parameter 'ypos' can be declared as pointer to const. However it seems that 'Charout' is a callback function, if 'ypos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] boxshade-3.1.1.orig/dv_ps.c:616:3: note: You might need to cast the function pointer here boxshade-3.1.1.orig/dv_ps.c:532:51: note: Parameter 'ypos' can be declared as pointer to const boxshade-3.1.1.orig/dv_regis.c:29:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_rtf.c:29:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_rtf.c:123:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] boxshade-3.1.1.orig/dv_regis.c:129:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_regis.c:14:54: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_regis.c:14:65: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_rtf.c:130:5: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] boxshade-3.1.1.orig/dv_rtf.c:14:57: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/dv_rtf.c:14:68: style: Parameter 'parstring' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/box.c:507:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] boxshade-3.1.1.orig/box.c:507:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] boxshade-3.1.1.orig/box.c:704:13: style: Variable '*instring' is reassigned a value before the old one has been used. [redundantAssignment] boxshade-3.1.1.orig/box.c:677:13: note: *instring is assigned boxshade-3.1.1.orig/box.c:704:13: note: *instring is overwritten boxshade-3.1.1.orig/box.c:1543:20: style: Local variable 'sim' shadows outer function [shadowFunction] boxshade-3.1.1.orig/box.c:1049:13: note: Shadowed declaration boxshade-3.1.1.orig/box.c:1543:20: note: Shadow variable boxshade-3.1.1.orig/box.c:164:31: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/box.c:204:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/box.c:219:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/box.c:235:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/box.c:378:26: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/box.c:378:52: style: Parameter 'explain' can be declared as pointer to const [constParameterPointer] boxshade-3.1.1.orig/box.c:959:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] boxshade-3.1.1.orig/box.c:1040:18: style: Variable 'ap' can be declared as pointer to const [constVariablePointer] diff: head boxshade-3.1.1.orig/box.c:1040:18: style: Variable 'ap' can be declared as pointer to const [constVariablePointer] DONE