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)
committerMike Gabriel <sunweaver@debian.org>
Tue, 28 May 2019 12:14:01 +0000 (13:14 +0100)
commitff795efca805205a6dc3a2a4bdb034bb27850d8f
tree516af4c3514d7c0a7883aa11774cd0e465e32dc8
parent6829d0daa5d8cf19d19edd26c76b9800f591fb23
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