diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-12 15:04:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-12 20:25:22 +0000 |
commit | 22681a96efc8c34b623679f59899ba76b2cd580e (patch) | |
tree | fbc6f49a12936a9c1a15d75023e47362d0a703e8 /sc | |
parent | c4f821f17cb8c970d1d8abd86a1f780250d96734 (diff) |
coverity#1242892 Untrusted value as argument
Change-Id: I6a384b0cf8a08883a0bfab8fd62a2e6badeb09cd
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xistream.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx index ceaf16a16a54..08b912bb55e7 100644 --- a/sc/source/filter/excel/xistream.cxx +++ b/sc/source/filter/excel/xistream.cxx @@ -986,6 +986,7 @@ void XclImpStream::IgnoreUniString( sal_uInt16 nChars ) OUString XclImpStream::ReadRawByteString( sal_uInt16 nChars ) { + nChars = GetMaxRawReadSize(nChars); boost::scoped_array<sal_Char> pcBuffer(new sal_Char[ nChars + 1 ]); sal_uInt16 nCharsRead = ReadRawData( pcBuffer.get(), nChars ); pcBuffer[ nCharsRead ] = '\0'; |