mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
monoscope: we have 64 colors, don't access colors[64]
Fixes remaining invalid read.
This commit is contained in:
parent
0ffd4ff8c0
commit
7bc3344131
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512])
|
|||
foo >>= 18;
|
||||
if (foo > 63)
|
||||
foo = 63;
|
||||
if (foo < -64)
|
||||
foo = -64;
|
||||
if (foo < -63)
|
||||
foo = -63;
|
||||
val = (i + ((foo + 64) << 8));
|
||||
bar = val;
|
||||
if ((bar > 0) && (bar < (256 * 128))) {
|
||||
|
|
Loading…
Reference in a new issue