2025-06-25 06:00 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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 129055d (2025-06-24 18:36:34 +0200) count: 10 10 elapsed-time: 313.8 306.9 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