From de38c4a5ea015f0f881b80f7ec0dcbaf323bc1e0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 17 Nov 2019 17:54:20 +0000 Subject: cid#1448469 Out-of-bounds access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add an annotation Change-Id: I70a431fecd8a87f2167bdce53ec2397d22436a9d Reviewed-on: https://gerrit.libreoffice.org/83025 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- soltools/cpp/_macro.c | 1 + 1 file changed, 1 insertion(+) (limited to 'soltools') diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c index eaafb86034ef..ef41b992edae 100644 --- a/soltools/cpp/_macro.c +++ b/soltools/cpp/_macro.c @@ -411,6 +411,7 @@ int ntok++; if (trp->tp >= trp->lp) { + // coverity[overrun-buffer-arg: FALSE] - a multiple of trp->max is allocated, not trp->max itself gettokens(trp, 0); if ((trp->lp - 1)->type == END) { -- cgit