mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/sanm: Reset sizes in destroy_buffers()
Fixes crash in 1288a2fe8e9ae6b00ca40e089d08ca65_signal_sigsegv_7ffff71426a7_354_accident.san with allocation limit 65536
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 39bbdebb1e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
41fba53525
commit
f78573466d
|
@ -457,6 +457,7 @@ static void destroy_buffers(SANMVideoContext *ctx)
|
||||||
ctx->frm0_size =
|
ctx->frm0_size =
|
||||||
ctx->frm1_size =
|
ctx->frm1_size =
|
||||||
ctx->frm2_size = 0;
|
ctx->frm2_size = 0;
|
||||||
|
init_sizes(ctx, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int init_buffers(SANMVideoContext *ctx)
|
static av_cold int init_buffers(SANMVideoContext *ctx)
|
||||||
|
|
Loading…
Reference in New Issue