gbranden pushed a commit to branch master
in repository groff.
commit e470a410a13a20c92974214da7eeb9db8f206344
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 05:25:51 2026 -0500
[troff]: Fix Savannah #68203.
* src/roff/troff/env.cpp (print_hyphenation_exceptions): Skip the
remainder of the input line if no hyphenation language is configured.
Fixes <https://savannah.gnu.org/bugs/?68203>. Problem introduced by me
in commit e05fb6b377, 2024-11-07 (itself a fix for a SEGV under the same
circumstance).
---
ChangeLog | 10 ++++++++++
src/roff/troff/env.cpp | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index f4418641e..69c9fa807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-04-01 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (print_hyphenation_exceptions): Skip
+ the remainder of the input line if no hyphenation language is
+ configured.
+
+ Fixes <https://savannah.gnu.org/bugs/?68203>. Problem
+ introduced by me in commit e05fb6b377, 2024-11-07 (itself a fix
+ for a SEGV under the same circumstance).
+
2026-04-01 G. Branden Robinson <[email protected]>
[groff]: Regression-test Savannah #68203.
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 9ccdd7bdc..e73a629f9 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3953,8 +3953,10 @@ static void add_hyphenation_exception_words_request()
static void print_hyphenation_exceptions()
{
- if (0 /* nullptr */ == current_language)
+ if (0 /* nullptr */ == current_language) {
+ skip_line();
return;
+ }
dictionary_iterator iter(current_language->exceptions);
symbol entry;
unsigned char *hypoint;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit