X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Fformat-parser.c;h=b539432eb1d9b457773d80fca2803851cc254170;hb=393668423c1c9456fd82db6b30f25de078915da5;hp=69a83b78676fe5f8ec6d1ceb73595461012ccf61;hpb=c646c399bf8c942a5e33abaa6c12336429c09f24;p=pspp-builds.git diff --git a/src/language/lexer/format-parser.c b/src/language/lexer/format-parser.c index 69a83b78..b539432e 100644 --- a/src/language/lexer/format-parser.c +++ b/src/language/lexer/format-parser.c @@ -128,6 +128,11 @@ parse_format_specifier (struct fmt_spec *input, enum fmt_parse_flags flags) ds_c_str (&tokstr)); return 0; } + if ( w > MAX_STRING ) + { + msg (SE, _("String variable width may not exceed %d"), MAX_STRING); + return 0; + } cp = cp2; if (f->n_args > 1 && *cp == '.')