aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-03-14 18:41:13 +0100
committerAlejandro Colomar <alx@kernel.org>2025-03-14 18:47:24 +0100
commitc9e9b0fc51a07f559a41c4e1a95da255444cf600 (patch)
tree9f9922517394e39a32b2caaf4f5b46baffa21b82
parent12d0bfcece370d862554cfc399e7b54b45bfe64f (diff)
downloadman-pages-c9e9b0fc51a07f559a41c4e1a95da255444cf600.tar.gz
etc/cppcheck/cppcheck.suppress: Suppress nullPointerOutOfMemory
It causes false positives: CPPCHECK .tmp/man/man2/open_by_handle_at.2.d/t_name_to_handle_at.c.lint-c.cppcheck.touch .tmp/man/man2/open_by_handle_at.2.d/t_name_to_handle_at.c:35:5: warning: inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fhp [nullPointerOutOfMemory] fhp->handle_bytes = 0; ^ .tmp/man/man2/open_by_handle_at.2.d/t_name_to_handle_at.c:26:17: note: Assuming allocation function fails fhp = malloc(fhsize); ^ .tmp/man/man2/open_by_handle_at.2.d/t_name_to_handle_at.c:26:17: note: Assignment 'fhp=malloc(fhsize)', assigned value is 0 fhp = malloc(fhsize); ^ .tmp/man/man2/open_by_handle_at.2.d/t_name_to_handle_at.c:35:5: note: Null pointer dereference fhp->handle_bytes = 0; ^ Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--etc/cppcheck/cppcheck.suppress1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/cppcheck/cppcheck.suppress b/etc/cppcheck/cppcheck.suppress
index cb36500b15..c55a575bc6 100644
--- a/etc/cppcheck/cppcheck.suppress
+++ b/etc/cppcheck/cppcheck.suppress
@@ -4,6 +4,7 @@ constParameter
constParameterCallback
knownConditionTrueFalse
missingIncludeSystem
+nullPointerOutOfMemory
redundantContinue
unassignedVariable
uninitvar