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:
parent
f286afec5f
commit
c3d7113cdf
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue