projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.13.tar.gz
[xscreensaver]
/
hacks
/
webcollage-helper-cocoa.m
diff --git
a/hacks/webcollage-helper-cocoa.m
b/hacks/webcollage-helper-cocoa.m
index 6c6e9d2ba236039ee2deff34cb7deedaabf701c7..1b5fadfb3daecddedae080d72726b2a02fc52412 100644
(file)
--- a/
hacks/webcollage-helper-cocoa.m
+++ b/
hacks/webcollage-helper-cocoa.m
@@
-382,6
+382,12
@@
main (int argc, char **argv)
if (w < 0) usage();
if (h < 0) usage();
if (w < 0) usage();
if (h < 0) usage();
+ if (w == 0 || h == 0 ||
+ w > 10240 || h > 10240) {
+ fprintf (stderr, "%s: absurd size: %d x %d\n", progname, w, h);
+ exit (1);
+ }
+
// Much of Cocoa needs one of these to be available.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// Much of Cocoa needs one of these to be available.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];