2022-06-21 06:05 ftp://ftp.de.debian.org/debian/pool/main/c/chordii/chordii_4.5.3+repack.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 -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: de2509f (2022-06-21 00:12:11 +0200) count: 31 31 elapsed-time: 7.9 10.4 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: chordii-4.5.3+repack/src/a2crd.c:79:27: style: Array index 'mini' is used before limits check. [arrayIndexThenCheck] chordii-4.5.3+repack/src/a2crd.c:95:6: style: Variable 'p_out' is assigned a value that is never used. [unreadVariable] chordii-4.5.3+repack/src/grid.c:471:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:480:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:529:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:535:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:542:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:550:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:558:32: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:577:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:371:22: style: Redundant condition: no_easy_grids. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] chordii-4.5.3+repack/src/grid.c:551:13: warning: Either the condition 'temp_str!=NULL' is redundant or there is possible null pointer dereference: temp_str. [nullPointerRedundantCheck] chordii-4.5.3+repack/src/grid.c:560:15: note: Assuming that condition 'temp_str!=NULL' is not redundant chordii-4.5.3+repack/src/grid.c:551:13: note: Null pointer dereference chordii-4.5.3+repack/src/grid.c:558:10: warning: Either the condition 'temp_str!=NULL' is redundant or there is possible null pointer dereference: temp_str. [nullPointerRedundantCheck] chordii-4.5.3+repack/src/grid.c:560:15: note: Assuming that condition 'temp_str!=NULL' is not redundant chordii-4.5.3+repack/src/grid.c:558:10: note: Null pointer dereference chordii-4.5.3+repack/src/toc.c:124:21: style: Local variable 'toc_ptr' shadows outer variable [shadowVariable] chordii-4.5.3+repack/src/toc.c:33:20: note: Shadowed declaration chordii-4.5.3+repack/src/toc.c:124:21: note: Shadow variable chordii-4.5.3+repack/src/chordii.c:905:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:926:41: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:927:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:931:42: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:934:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:940:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:953:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:966:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:971:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:976:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:985:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:989:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1030:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1048:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1058:28: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:696:12: style: Variable 'text_font' is reassigned a value before the old one has been used. [redundantAssignment] chordii-4.5.3+repack/src/chordii.c:694:12: note: text_font is assigned chordii-4.5.3+repack/src/chordii.c:696:12: note: text_font is overwritten chordii-4.5.3+repack/src/chordii.c:1334:6: style: Local variable 'c' shadows outer variable [shadowVariable] chordii-4.5.3+repack/src/chordii.c:39:2: note: Shadowed declaration chordii-4.5.3+repack/src/chordii.c:1334:6: note: Shadow variable diff: DONE