11 Commits (aaac6c29d215dc4f36d7bec8e88466f83a234b5e)

Author SHA1 Message Date
Michael Niedermayer f39c3c8855 factorize & 18 years ago
Michael Niedermayer 0abfd53344 simplify 18 years ago
Michael Niedermayer 0cb7f8a260 check input validity, this prevents a few variables from reachin odd values which might have lead to out of array writes and thus might have been exploitable 18 years ago
Michael Niedermayer 34a370cb0c simplify 18 years ago
Michael Niedermayer 5f01beb548 move eob_reached logic into ff_lzw_decode_tail() which simplifies the code, avoids some checks in the innermost loop and also gets rid of the controversal break while hopefully retaining the last byte in a valid bytestream, invalid bytestreams still can have very significant overread 18 years ago
Michael Niedermayer 6aaf3abd6d simplify 18 years ago
Michael Niedermayer bf7709619b factorize 18 years ago
Michael Niedermayer 62ef8925c5 simplify 18 years ago
Baptiste Coudurier 93e91145b4 fix indentation 18 years ago
Baptiste Coudurier 36376fa3ba break if eob is reached to avoid reading one too much byte 18 years ago
Kostya Shishkov ffc5430bc3 LZW decoder as separate module plus TIFF LZW support 18 years ago