mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avcodec/notchlc: zero-initialize history buffer
Otherwise a specially crafted bitstream can potentially read uninitialized stack memory. Fixes #YWH-PGM40646-37
This commit is contained in:
@@ -79,7 +79,7 @@ static int lz4_decompress(AVCodecContext *avctx,
|
||||
PutByteContext *pb)
|
||||
{
|
||||
unsigned reference_pos, delta, pos = 0;
|
||||
uint8_t history[HISTORY_SIZE];
|
||||
uint8_t history[HISTORY_SIZE] = { 0 };
|
||||
int match_length;
|
||||
|
||||
while (bytestream2_get_bytes_left(gb) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user