Skip to content
Commit af88c4a6 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

file-gif-load: Fix incorrect out-of-input-bits condition (#695513)

GetCode() erroneously assumes that it has run out of input bits, because
it's off by 1 in its size calculation. At the end of the block, if the
End-of-Information code is exactly at the block boundary, it calculates
that it needs to read an extra bit, and tries to read beyond the end of
the block. It fails then, and the End-of-Information code is not
processed, and other warnings/errors are generated.
(cherry picked from commit f86655bb)
parent 2508fa6e
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