X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flanguage%2Flexer%2Flexer.at;h=d499f0922f7cd2e20cd35fc2fb9b579d7d2d98c5;hb=9ecd5482c0847e65b012509008deb1a19e501c67;hp=87ce344eacd4193785fbad5b8ad6bf96307427aa;hpb=e0f9210e814d03bc43b6a9b30a402e403d5666b9;p=pspp diff --git a/tests/language/lexer/lexer.at b/tests/language/lexer/lexer.at index 87ce344eac..d499f0922f 100644 --- a/tests/language/lexer/lexer.at +++ b/tests/language/lexer/lexer.at @@ -1,16 +1,16 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation, either version 3 of the License, or dnl (at your option) any later version. -dnl +dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. -dnl +dnl dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl @@ -94,3 +94,16 @@ lexer.sps:2.5: error: LIST: Syntax error at `.': Unexpected `.' in middle of com lexer.sps:2.6: error: LIST: Syntax error at `...': Bad character U+0000 in input. ]) AT_CLEANUP + + + + +# Bug #54684 +AT_SETUP([lexer crash due to overflow]) +printf "DATA LIST/5555555555555555." > lexer.sps + +AT_CHECK([pspp -O format=csv lexer.sps], [1], [dnl +lexer.sps:1.11-1.26: error: DATA LIST: Syntax error at `5555555555555555': Expected integer between 1 and 2147483647. +]) + +AT_CLEANUP