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>
Sat, 19 Oct 2013 15:58:47 +0000 (17:58 +0200)
commit838f461b0716393a1b5c70efd03de1e8bc197380
treedcb19c6fe2d7e9e911af8c0c0dd6c376229243d4
parent240fd8c96f59ebe9dcfc4152a1086cd3f63400c0
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>
libavcodec/utils.c