diff options
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; } |