projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c7814f
)
progs/demos: Check upper bounds of input in manywin.c.
author
Vinson Lee
<vlee@vmware.com>
Sun, 10 Jan 2010 09:57:13 +0000
(
01:57
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 10 Jan 2010 09:57:13 +0000
(
01:57
-0800)
progs/xdemos/manywin.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/manywin.c
b/progs/xdemos/manywin.c
index 3b0810b2e549575f2afd4c2da99d653090629756..8ad5c4fe49f168fb9d8b5989ef18f106a8e9dac5 100644
(file)
--- a/
progs/xdemos/manywin.c
+++ b/
progs/xdemos/manywin.c
@@
-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++) {