2025-08-29 09:19 ftp://ftp.de.debian.org/debian/pool/main/t/tree-sitter-vim/tree-sitter-vim_0.4.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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.41+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: 327ef3c (2025-08-29 11:03:21 +0200) count: 10 10 elapsed-time: 343.3 336.7 head-timing-info: old-timing-info: head results: tree-sitter-vim-0.4.0/src/scanner.c:51:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tree-sitter-vim-0.4.0/src/scanner.c:50:33: note: Assuming allocation function fails tree-sitter-vim-0.4.0/src/scanner.c:50:16: note: Assignment 's=(struct Scanner*)malloc(sizeof(struct Scanner))', assigned value is 0 tree-sitter-vim-0.4.0/src/scanner.c:51:3: note: Null pointer dereference tree-sitter-vim-0.4.0/src/scanner.c:52:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tree-sitter-vim-0.4.0/src/scanner.c:50:33: note: Assuming allocation function fails tree-sitter-vim-0.4.0/src/scanner.c:50:16: note: Assignment 's=(struct Scanner*)malloc(sizeof(struct Scanner))', assigned value is 0 tree-sitter-vim-0.4.0/src/scanner.c:52:3: note: Null pointer dereference tree-sitter-vim-0.4.0/src/scanner.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tree-sitter-vim-0.4.0/src/scanner.c:50:33: note: Assuming allocation function fails tree-sitter-vim-0.4.0/src/scanner.c:50:16: note: Assignment 's=(struct Scanner*)malloc(sizeof(struct Scanner))', assigned value is 0 tree-sitter-vim-0.4.0/src/scanner.c:53:3: note: Null pointer dereference tree-sitter-vim-0.4.0/src/scanner.c:54:10: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tree-sitter-vim-0.4.0/src/scanner.c:50:33: note: Assuming allocation function fails tree-sitter-vim-0.4.0/src/scanner.c:50:16: note: Assignment 's=(struct Scanner*)malloc(sizeof(struct Scanner))', assigned value is 0 tree-sitter-vim-0.4.0/src/scanner.c:54:10: note: Null pointer dereference tree-sitter-vim-0.4.0/src/scanner.c:262:15: style: Local variable 'i' shadows outer variable [shadowVariable] tree-sitter-vim-0.4.0/src/scanner.c:249:10: note: Shadowed declaration tree-sitter-vim-0.4.0/src/scanner.c:262:15: note: Shadow variable tree-sitter-vim-0.4.0/src/scanner.c:79:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] tree-sitter-vim-0.4.0/src/scanner.c:118:48: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] tree-sitter-vim-0.4.0/src/scanner.c:243:35: style: Parameter 'possible' can be declared as pointer to const [constParameterPointer] tree-sitter-vim-0.4.0/src/scanner.c:271:36: style: Parameter 'lexer' can be declared as pointer to const [constParameterPointer] tree-sitter-vim-0.4.0/src/scanner.c:482:16: style: Variable 'keyword[i]' is assigned a value that is never used. [unreadVariable] diff: DONE