mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
aacdec: set ac->output_elements upon channel element free
The issue is that ac->output_elements is populated from ac->che, which may be freed, leaving dangling pointers in this list. Should fix clusterfuzz.
This commit is contained in:
parent
204f7f8cc7
commit
b1b69ccbc0
@ -166,6 +166,7 @@ static av_cold int che_configure(AACDecContext *ac,
|
||||
ac->proc.sbr_ctx_close(ac->che[type][id]);
|
||||
}
|
||||
av_freep(&ac->che[type][id]);
|
||||
memset(ac->output_element, 0, sizeof(ac->output_element));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user