h264dec: handle zero-sized NAL units in get_last_needed_nal()
authorAnton Khirnov <anton@khirnov.net>
Wed, 20 Jul 2016 06:31:38 +0000 (08:31 +0200)
committerSylvain Beucler <beuc@debian.org>
Thu, 5 Dec 2019 16:27:00 +0000 (16:27 +0000)
commit866ce8308a7268f444a4d88eb98f18c4c71864c7
tree978cced856da03ea9a391f5fe2d53af1613b1cc0
parenta9d87f6a4ee5ae38378c95e7715667c35cead53b
h264dec: handle zero-sized NAL units in get_last_needed_nal()

The current code will ignore the init_get_bits() failure and do an
invalid read from the uninitialized GetBitContext.

Found-By: Jan Ruge <jan.s.ruge@gmail.com>
Bug-Id: 952

Gbp-Pq: Name CVE-2017-1000460.patch
libavcodec/h264.c