avcodec/dolby_e: fix potentially undefined pointer arithmetic
authorfoo86 <foobaz86@gmail.com>
Sat, 22 Jul 2017 14:19:25 +0000 (17:19 +0300)
committerfoo86 <foobaz86@gmail.com>
Wed, 26 Jul 2017 18:23:07 +0000 (21:23 +0300)
commit5e715b583dab85735660b15a8d217a69164675fe
tree18a71229e85d9060e41a9cba8320dd5c8603561d
parent0689cc2475557339a00240d05b7fc4fcb70e21cd
avcodec/dolby_e: fix potentially undefined pointer arithmetic

Avoid undefined behavior in skip_input() by checking that enough data is
available before incrementing input pointer.

Check return values of parse_key() and skip_input() and exit early with
error if there is not enough data.
libavcodec/dolby_e.c