diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 17:12:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 18:14:36 +0100 |
commit | cd86543fd4b81b03762e24d81be6c7671d5188a5 (patch) | |
tree | d964af82149252b749d38e2c8c7eae94afe7919c /vcl | |
parent | 6ec9b3a6301a73d5a5df038a39e7319e9ac43907 (diff) |
coverity#1242714 Untrusted value as argument
Change-Id: I1524722feae3ad9f67627cb34dec83632edefec4
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/jpeg/Exif.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx index 01f059247a17..1a0f05b7471e 100644 --- a/vcl/source/filter/jpeg/Exif.cxx +++ b/vcl/source/filter/jpeg/Exif.cxx @@ -124,7 +124,7 @@ bool Exif::processJpeg(SvStream& rStream, bool bSetValue) rStream.ReadUInt16( aLength ); - if (aLength < 8) + if (aLength < 8 || aLength > rStream.remainingSize()) { return false; } |