gbranden pushed a commit to branch master
in repository groff.
commit 1274099f732216055af36604082da6ca901dd1cd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 24 22:26:08 2026 -0500
[groff]: Regression-test Savannah #68395.
* src/roff/groff/tests/do-not-crash-on-missing-fschar-argument.sh: Do
it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++++
src/roff/groff/groff.am | 1 +
.../do-not-crash-on-missing-fschar-argument.sh | 28 ++++++++++++++++++++++
3 files changed, 37 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index e11fcf1b4..1692e2041 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-24 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68395.
+
+ * src/roff/groff/tests/\
+ do-not-crash-on-missing-fschar-argument.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2026-05-22 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 6175e1859..e50df0726 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -75,6 +75,7 @@ groff_TESTS = \
src/roff/groff/tests/do-not-abort-applying-tr-request-to-non-char.sh \
src/roff/groff/tests/do-not-crash-on-backslash-X-if-font-invalid.sh \
src/roff/groff/tests/do-not-crash-on-mismatched-diversion-request.sh \
+ src/roff/groff/tests/do-not-crash-on-missing-fschar-argument.sh \
src/roff/groff/tests/do-not-free-file-name-pointers-early.sh \
src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh \
src/roff/groff/tests/dot-b-register-works.sh \
diff --git a/src/roff/groff/tests/do-not-crash-on-missing-fschar-argument.sh
b/src/roff/groff/tests/do-not-crash-on-missing-fschar-argument.sh
new file mode 100755
index 000000000..b376356b0
--- /dev/null
+++ b/src/roff/groff/tests/do-not-crash-on-missing-fschar-argument.sh
@@ -0,0 +1,28 @@
+#!/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 over
+# 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/>.
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# troff should not throw an assertion failure or call
+# `define_character()` with nothing to read from the input stream when
+# handling the `fschar` request. Savannah #68395.
+
+echo '.fschar S' | "$groff" -T ps
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit