avformat/aviobuf: Delay buffer downsizing until asserts are met
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Jun 2019 20:04:16 +0000 (22:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 16:48:42 +0000 (18:48 +0200)
commit7d075c5f337f76bbefee8fbcff7e3cc8d9f14a24
tree5891db8be4b3014ee9d228405354eba50f95c529
parentb5d6b509b1ce6c663c30d329d939ff13bfd4e280
avformat/aviobuf: Delay buffer downsizing until asserts are met

Fixes: Assertion failure
Fixes: 15151/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5757079496687616
Fixes: 15205/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5767573242642432
May fix: Ticket7094

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0334632d5c02720f1829d59cd20c009584b5b163)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/aviobuf.c