summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-21 20:18:57 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-22 09:34:18 +0200
commitfdd5d471c10b3e349b51b9f4396cbbbd6d2190d8 (patch)
treeb84c9c2cc6bbf90a52e826119c478111f860d113 /package/source
parent041b3d8166fcfe38aa04c39f94c2ada140eaf991 (diff)
cid#1607270 silence Overflowed integer argument
Change-Id: Ie5973c23d2d106815af0d1300a99687a84cfed1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170822 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'package/source')
-rw-r--r--package/source/zipapi/ZipFile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index e46d7c561e34..b83d52cfae79 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -573,6 +573,7 @@ uno::Reference<io::XInputStream> ZipFile::checkValidPassword(
if ( nSize > n_ConstDigestDecrypt )
nSize = n_ConstDigestDecrypt;
+ assert(nSize <= n_ConstDigestDecrypt && "silence bogus coverity overflow_sink");
Sequence < sal_Int8 > aReadBuffer ( nSize );
xStream->readBytes( aReadBuffer, nSize );