avcodec/utils: add some saftey checks to add_metadata_from_side_data()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2013 15:52:47 +0000 (17:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Dec 2013 00:05:47 +0000 (01:05 +0100)
commitfce2cfbdcfbdcf40907f5965f08eb3231385f65b
tree8a9b6896e06efdd3793ee7ad26ad4a4c2e8426b5
parent72f1907c96b5cf88cfe18cf57a40a8b229ea96c1
avcodec/utils: add some saftey checks to add_metadata_from_side_data()

This fixes potential overreads with crafted files.

Found-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 838f461b0716393a1b5c70efd03de1e8bc197380)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c