mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
progs/demos: Check upper bounds of input in manywin.c.
This commit is contained in:
parent
0c7814fe23
commit
199dedd6dd
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,8 @@ main(int argc, char *argv[])
|
|||
}
|
||||
if (n < 1)
|
||||
n = 1;
|
||||
if (n > MAX_HEADS)
|
||||
n = MAX_HEADS;
|
||||
|
||||
printf("%d windows\n", n);
|
||||
for (i = 0; i < n; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue