cid#1607270 silence Overflowed integer argument

Change-Id: I6238fe6fdf28e876c636ce12022c0458e9548578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172027
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-12 12:51:54 +01:00
parent f286afec5f
commit c3d7113cdf

View file

@ -573,8 +573,8 @@ 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 );
assert(nSize <= n_ConstDigestDecrypt && nSize >= 0 && "silence bogus coverity overflow_sink");
Sequence<sal_Int8> aReadBuffer(nSize);
xStream->readBytes( aReadBuffer, nSize );