mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
avutil/intmath: fix possible array overread
This commit is contained in:
parent
11fdcb9364
commit
b8593a2bd8
@ -75,7 +75,7 @@ static av_always_inline av_const int ff_log2_16bit_c(unsigned int v)
|
||||
v >>= 8;
|
||||
n += 8;
|
||||
}
|
||||
n += ff_log2_tab[v];
|
||||
n += ff_log2_tab[v & 0xff];
|
||||
|
||||
return n;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user