projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
segment: Fix 1-byte read past initialized data when file ends in CR.
[pspp]
/
tests
/
language
/
lexer
/
variable-parser.at
diff --git
a/tests/language/lexer/variable-parser.at
b/tests/language/lexer/variable-parser.at
index d9ca22815fe26e8b34f3f32558bc5d9b0f299d0a..2591ef276b65638a5375ff40fc4683db1a1ca50a 100644
(file)
--- a/
tests/language/lexer/variable-parser.at
+++ b/
tests/language/lexer/variable-parser.at
@@
-1,5
+1,5
@@
dnl PSPP - a program for statistical analysis.
dnl PSPP - a program for statistical analysis.
-dnl Copyright (C) 2017 Free Software Foundation, Inc.
+dnl Copyright (C) 2017
, 2020
Free Software Foundation, Inc.
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
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
@@
-55,12
+55,26
@@
Table: X × Yabbadabbadoo
,,,Yabbadabbadoo,,,,,,,Total
,,,1.00,2.00,3.00,4.00,5.00,6.00,7.00,
X,1.00,Count,0,0,0,0,0,0,0,0
,,,Yabbadabbadoo,,,,,,,Total
,,,1.00,2.00,3.00,4.00,5.00,6.00,7.00,
X,1.00,Count,0,0,0,0,0,0,0,0
-,2.00,,0,0,0,0,0,0,0,0
-,3.00,,0,0,0,0,0,0,0,0
-,4.00,,0,0,0,0,1,0,0,1
-,5.00,,0,0,0,0,0,0,0,0
-,6.00,,0,0,0,0,0,0,0,0
-,7.00,,0,0,0,0,0,0,0,0
-Total,,,0,0,0,0,1,0,0,1
+,2.00,
Count
,0,0,0,0,0,0,0,0
+,3.00,
Count
,0,0,0,0,0,0,0,0
+,4.00,
Count
,0,0,0,0,1,0,0,1
+,5.00,
Count
,0,0,0,0,0,0,0,0
+,6.00,
Count
,0,0,0,0,0,0,0,0
+,7.00,
Count
,0,0,0,0,0,0,0,0
+Total,,
Count
,0,0,0,0,1,0,0,1
])
AT_CLEANUP
])
AT_CLEANUP
+
+
+AT_SETUP([variable parser crash])
+
+AT_DATA([crash.sps], [dnl
+INPUT PROGRAM.
+FORMATS ALL(F1).$
+END FILE.
+END INPUT PROGRAM.
+])
+
+AT_CHECK([pspp -O format=txt crash.sps], [1], [ignore])
+
+AT_CLEANUP
\ No newline at end of file