From 8568a3191df37a8fb40e6998a2831db5d0252368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 30 Aug 2026 20:42:39 +0000 Subject: [PATCH] cid#562978 silence Out-of-bounds access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit coverity only takes the tag when it sits on the line directly above the statement, and the rest of the tree spells out the FALSE classification Signed-off-by: Caolán McNamara Change-Id: I2cb97c3314a7b612b8fe5bbe2270c7436d1d0717 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10507 Tested-by: Jenkins CPCI Reviewed-by: Noel Grandin (cherry picked from commit 260f71263c7a37290d50a182ab1e8616a4b99de3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210288 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sal/osl/unx/security.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sal/osl/unx/security.cxx b/sal/osl/unx/security.cxx index 006869235282..47272d850dd9 100644 --- a/sal/osl/unx/security.cxx +++ b/sal/osl/unx/security.cxx @@ -103,8 +103,7 @@ static oslSecurityImpl * growSecurityImpl( } p = static_cast(realloc(impl, n)); if (p != nullptr) { - // coverity[overrun-buffer-arg] - theoretically massive n is not due to - // a negative parameter being interpreted as unsigned + // coverity[overrun-buffer-arg : FALSE] - n is the size just passed to realloc memset (p, 0, n); } }