diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-12 10:56:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-12 11:01:49 +0100 |
commit | ee35b72064d8d1333709b102b051360018f8044b (patch) | |
tree | c016299145dd9359159202edf7297b6cd0f6fb73 /vcl/source/filter/igif | |
parent | 69632c9c3291a7bb9d465495943aa1dbe12c5af2 (diff) |
fix another gif import crash
Change-Id: I0ffa569e0c4240e11184df7dd56b95d87a12425d
Diffstat (limited to 'vcl/source/filter/igif')
-rw-r--r-- | vcl/source/filter/igif/decode.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx index 1b18f5ee134a..2b445e9e1d5a 100644 --- a/vcl/source/filter/igif/decode.cxx +++ b/vcl/source/filter/igif/decode.cxx @@ -193,6 +193,9 @@ bool GIFLZWDecompressor::ProcessOneCode() nOldCode = nCode; + if (nCode > 4096) + return false; + // write character(/-sequence) of code nCode in the output buffer: pE = pTable + nCode; do |