gbranden pushed a commit to branch master
in repository groff.
commit 67c668c2f4f8b3a1962f0a9564f26c9603d14cc5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Nov 21 13:40:51 2026 -0600
[grotty]: Regression-test Savannah #68942.
* src/devices/grotty/tests/do-not-segv-on-huge-vertical-motion.sh: New
file; do it.
* src/devices/grotty/grotty.am: Update `grotty_TESTS` to run test.
Test fails at this commit.
---
ChangeLog | 9 ++++
src/devices/grotty/grotty.am | 1 +
.../tests/do-not-segv-on-huge-vertical-motion.sh | 48 ++++++++++++++++++++++
3 files changed, 58 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9c4603ddd..676c4600e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-11-21 G. Branden Robinson <[email protected]>
+
+ [grotty]: Regression-test Savannah #68942.
+
+ * src/devices/grotty/tests/\
+ do-not-segv-on-huge-vertical-motion.sh: New file; do it.
+ * src/devices/grotty/grotty.am: Update `grotty_TESTS` to run
+ test.
+
2026-11-21 G. Branden Robinson <[email protected]>
* src/roff/troff/div.cpp (write_any_trailer_and_exit): Drop
diff --git a/src/devices/grotty/grotty.am b/src/devices/grotty/grotty.am
index 2279c825c..9e19d4c1d 100644
--- a/src/devices/grotty/grotty.am
+++ b/src/devices/grotty/grotty.am
@@ -35,6 +35,7 @@ EXTRA_DIST += \
grotty_TESTS = \
src/devices/grotty/tests/basic-latin-glyphs-map-correctly.sh \
+ src/devices/grotty/tests/do-not-segv-on-huge-vertical-motion.sh \
src/devices/grotty/tests/h-option-works.sh \
src/devices/grotty/tests/osc8-works.sh
TESTS += $(grotty_TESTS)
diff --git a/src/devices/grotty/tests/do-not-segv-on-huge-vertical-motion.sh
b/src/devices/grotty/tests/do-not-segv-on-huge-vertical-motion.sh
new file mode 100755
index 000000000..9edd830b1
--- /dev/null
+++ b/src/devices/grotty/tests/do-not-segv-on-huge-vertical-motion.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# Copyright 2026 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+grotty="${abs_top_builddir:-.}/grotty"
+
+input='#
+x T ascii
+x res 240 24 40
+x init
+p1
+x font 1 R
+f1
+s10
+V40
+H0
+md
+DFd
+tA
+v16000
+tB
+n40 0
+x trailer
+V2640
+x stop
+#'
+
+output=$(printf '%s\n' "$input" | "$grotty" -F font -F build/font \
+ | sed '/^$/d')
+echo "$output"
+echo "$output" | grep -q 'B'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit