gbranden pushed a commit to branch master
in repository groff.

commit 4c287f03d17e1024068da1006a8be798b9a04b33
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 16 18:17:11 2025 -0600

    [troff]: Instrument seemingly impossible scenario.
    
    * src/roff/troff/env.cpp (add_hyphenation_exceptions): Do it.
---
 ChangeLog              | 5 +++++
 src/roff/troff/env.cpp | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 3fb88b1be..9957a0b49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-11-16  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp (add_hyphenation_exceptions):
+       Instrument seemingly impossible scenario.
+
 2025-11-16  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (margin_character): Fix code style
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 140f700d7..90a53c8e1 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3850,6 +3850,9 @@ static void add_hyphenation_exceptions()
           && !tok.is_eof()) {
       charinfo *ci = tok.get_char(true /* required */);
       if (0 /* nullptr */ == ci) {
+       error("%1 has no associated character information(!)",
+             tok.description());
+       assert(0 == "unexpected null pointer to charinfo of token");
        skip_line();
        return;
       }

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to