2022-06-22 17:25 ftp://ftp.de.debian.org/debian/pool/main/j/jgraph/jgraph_83.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 cppcheck: head 2.8 head-info: 650f409 (2022-06-22 08:46:48 +0200) count: 58 58 elapsed-time: 80.9 147.9 head-timing-info: Tokenizer::simplifyTokens1: 26.5377s (avg. 2.04137s - 13 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 26.2417s (avg. 2.01859s - 13 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.197532s (avg. 0.0151948s - 13 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.033537s (avg. 0.00257977s - 13 result(s)) Tokenizer::createTokens: 0.029365s (avg. 0.00225885s - 13 result(s)) Overall time: 53.1599s old-timing-info: Tokenizer::simplifyTokens1: 48.6119s (avg. 3.73938s - 13 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 48.2976s (avg. 3.7152s - 13 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.204357s (avg. 0.0157198s - 13 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.035191s (avg. 0.002707s - 13 result(s)) Tokenizer::createTokens: 0.030455s (avg. 0.00234269s - 13 result(s)) Overall time: 97.3092s head results: jgraph-83.orig/draw.c:746:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/draw.c:772:38: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/draw.c:688:5: warning: %f in format string (no. 1) requires 'double' but the argument type is 'signed int'. [invalidPrintfArgType_float] jgraph-83.orig/draw.c:313:17: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] jgraph-83.orig/edit.c:156:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/edit.c:207:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] jgraph-83.orig/edit.c:260:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] jgraph-83.orig/edit.c:313:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] jgraph-83.orig/exit.c:49:1: error: va_list 'va' was opened but not closed by va_end(). [va_end_missing] jgraph-83.orig/jmalloc.c:85:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/jmalloc.c:439:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/jmalloc.c:217:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'jmalloc *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:226:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:229:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:259:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:263:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:284:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:287:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:348:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:351:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/list.c:46:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/list.c:53:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/list.c:94:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:31:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:46:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:75:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:99:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:111:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:121:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:145:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:160:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:166:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:173:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:179:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:208:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:214:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:296:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/printline.c:306:43: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/process.c:385:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/process.c:649:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/process.c:704:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/process.c:770:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/show.c:56:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/show.c:72:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/show.c:249:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/show.c:362:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:79:7: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:98:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:112:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:176:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:420:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] jgraph-83.orig/token.c:361:7: error: Common realloc mistake: 'out_str' nulled but not freed upon failure [memleakOnRealloc] jgraph-83.orig/token.c:198:60: error: Null pointer dereference [nullPointer] jgraph-83.orig/token.c:308:7: style: Parameter 's' can be declared as pointer to const [constParameter] jgraph-83.orig/token.c:66:9: style: Unused variable: f [unusedVariable] jgraph-83.orig/token.c:337:10: style: Unused variable: j [unusedVariable] jgraph-83.orig/token.c:377:8: style: Unused variable: c [unusedVariable] jgraph-83.orig/token.c:379:7: style: Unused variable: i [unusedVariable] diff: head jgraph-83.orig/edit.c:207:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] 2.8 jgraph-83.orig/edit.c:207:8: style: Parameter 'all_gs' can be declared with const [constParameter] head jgraph-83.orig/edit.c:260:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] 2.8 jgraph-83.orig/edit.c:260:8: style: Parameter 'all_gs' can be declared with const [constParameter] head jgraph-83.orig/edit.c:313:8: style: Parameter 'all_gs' can be declared as pointer to const [constParameter] 2.8 jgraph-83.orig/edit.c:313:8: style: Parameter 'all_gs' can be declared with const [constParameter] head jgraph-83.orig/token.c:308:7: style: Parameter 's' can be declared as pointer to const [constParameter] 2.8 jgraph-83.orig/token.c:308:7: style: Parameter 's' can be declared with const [constParameter] DONE