summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-10 17:12:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-10 18:14:36 +0100
commitcd86543fd4b81b03762e24d81be6c7671d5188a5 (patch)
treed964af82149252b749d38e2c8c7eae94afe7919c
parent6ec9b3a6301a73d5a5df038a39e7319e9ac43907 (diff)
coverity#1242714 Untrusted value as argument
Change-Id: I1524722feae3ad9f67627cb34dec83632edefec4
-rw-r--r--vcl/source/filter/jpeg/Exif.cxx2
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;
}