diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-11 15:31:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-11 17:48:43 +0100 |
commit | 839e051c658a638a259be6a6bb091b654fac405f (patch) | |
tree | 308dd0aa62fab12ecf236e6cd2da66ac46e0315e /vcl | |
parent | 1b4d27a3badddd2648c3f02cd234ca74c5a40e6b (diff) |
fix gif import crash
Change-Id: I3a5e0efef6843fb8f8b485fa2369ac5b99513c31
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/graphicfilter/data/gif/pass/crash-1.gif | bin | 0 -> 111 bytes | |||
-rw-r--r-- | vcl/source/filter/igif/decode.cxx | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/graphicfilter/data/gif/pass/crash-1.gif b/vcl/qa/cppunit/graphicfilter/data/gif/pass/crash-1.gif Binary files differnew file mode 100644 index 000000000000..860f9e1d8fae --- /dev/null +++ b/vcl/qa/cppunit/graphicfilter/data/gif/pass/crash-1.gif diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx index 46a666f812ae..1b18f5ee134a 100644 --- a/vcl/source/filter/igif/decode.cxx +++ b/vcl/source/filter/igif/decode.cxx @@ -197,6 +197,8 @@ bool GIFLZWDecompressor::ProcessOneCode() pE = pTable + nCode; do { + if (pOutBufData == pOutBuf) //can't go back past start + return false; nOutBufDataLen++; *(--pOutBufData) = pE->nData; pE = pE->pPrev; |