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, 31 Aug 2019 15:36:55 +0000 (16:36 +0100)
commitf0495e494ccd4e550c770a1f042bdb105860d844
tree6dbaaac53e149897563c8c53684475efe0f3fc8b
parentba651381f0cb6c3fb3670588b56f94af81dd7da3
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