1 Description: Prevent arbitrary long file names
2 Author: George Danchev <danchev@spnet.net>
3 Last-Update: 2009-10-25
4 Index: scrot-0.8/src/options.c
5 ===================================================================
6 --- scrot-0.8.orig/src/options.c
7 +++ scrot-0.8/src/options.c
8 @@ -124,6 +124,12 @@ scrot_parse_option_array(int argc, char
11 opt.output_file = argv[optind++];
13 + if ( strlen(opt.output_file) > 256 ) {
14 + printf("output filename too long.\n");
19 opt.thumb_file = name_thumbnail(opt.output_file);