Update of bug #68797 (group groff):

         Planned Release:                    None => 1.25.0
                 Summary: [troff] assertion failure when `rn` given invalid
first identifier => [PATCH] [troff] assertion failure when `rn` given invalid
first identifier

    _______________________________________________________

Follow-up Comment #1:


commit 270f8e647778f5cb40ffca2e27533a8f33972c70
Author:     G. Branden Robinson <[email protected]>
AuthorDate: Sun Oct 18 21:47:32 2026 -0500
Commit:     G. Branden Robinson <[email protected]>
CommitDate: Sun Oct 18 21:47:32 2026 -0500

    XXX [troff]: Fix Savannah #68797.

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 733aeddb7..401a65feb 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5854,7 +5854,10 @@ static void rename_macro() // .rn
     return;
   }
   symbol s1 = read_identifier();
-  assert(s1 != 0 /* nullptr */);
+  if (s1.is_null()) {
+    skip_line();
+    return;
+  }
   if (!s1.is_null()) {
     symbol s2 = read_identifier();
     if (s2.is_null())




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68797>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to