Kaydet (Commit) 982d07b9 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

fix gif import crash

Change-Id: I3a5e0efef6843fb8f8b485fa2369ac5b99513c31
(cherry picked from commit 839e051c)
Reviewed-on: https://gerrit.libreoffice.org/16952Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 1fb00280
...@@ -200,6 +200,8 @@ bool GIFLZWDecompressor::ProcessOneCode() ...@@ -200,6 +200,8 @@ bool GIFLZWDecompressor::ProcessOneCode()
pE = pTable + nCode; pE = pTable + nCode;
do do
{ {
if (pOutBufData == pOutBuf) //can't go back past start
return false;
nOutBufDataLen++; nOutBufDataLen++;
*(--pOutBufData) = pE->nData; *(--pOutBufData) = pE->nData;
pE = pE->pPrev; pE = pE->pPrev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment