golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 11 Jun 2012 14:29:57 +0000 (10:29 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 12 Jun 2012 18:33:39 +0000 (14:33 -0400)
commit4795362660a526a38a7a60f06826bce97a092b59
tree55226412f7fb4d3570469478ccbe7ec955519d3a
parent404410a53ac9490d2c74369f7aab18afcc578bc3
golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()

Fixes infinite loop in FLAC decoding in case of a truncated bitstream due to
the safe bitstream reader returning 0's at the end.

Fixes Bug 310.

CC:libav-stable@libav.org
libavcodec/golomb.h