avutil/frame: Reimplement av_frame_new_side_data() without size=0 special case
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Feb 2017 14:19:31 +0000 (15:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 25 Feb 2017 21:02:23 +0000 (22:02 +0100)
commit5804201cbac2de8824013a8294e381e93bbe45f2
treeb20994ea09617767524c9ea93b1a582c0b9ea81b
parent58f3469cc6df323ce82456e97cf584cbe70d6895
avutil/frame: Reimplement av_frame_new_side_data() without size=0 special case

The size 0 special case causes side data to be created which is
different and a special case if for any reasons size = 0 is passed

Fixes: multiple runtime error: null pointer passed as argument 1, which is declared to never be null
Fixes: 653/clusterfuzz-testcase-5773837415219200

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/frame.c