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>
Sat, 30 Mar 2019 20:44:13 +0000 (20:44 +0000)
commit8393402cd7a5efd739d7d8e65a2605eaea20c3ac
tree936f03701cc4863be7a9cc29b39b9a60be08bb94
parentdd86993c30d08764c9730473d8c92d2b28296c70
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