Update of bug #68790 (group groff):

                 Summary: [troff] `rr` request stops processing arguments upon
encountering an invalid one => [PATCH] [troff] `rr` request stops processing
arguments upon encountering an invalid one

    _______________________________________________________

Follow-up Comment #1:


commit b64d8dd370346b1b25914d2ed7790047ab8928e3
Author: G. Branden Robinson <[email protected]>
Date:   Sat Oct 17 17:40:17 2026 -0500

    XXX [troff]: Fix Savannah #68790.

diff --git a/src/roff/troff/reg.cpp b/src/roff/troff/reg.cpp
index 14eb518be..e75c6ae1f 100644
--- a/src/roff/troff/reg.cpp
+++ b/src/roff/troff/reg.cpp
@@ -539,8 +539,11 @@ static void remove_register_request()
   }
   for (;;) {
     symbol s = read_identifier();
-    if (s.is_null())
-      break;
+    if (s.is_null()) {
+      warning(WARN_SYNTAX, "ignoring invalid identifier"
+             " given as argment to register removal request");
+      skip_rest_of_argument();
+    }
     register_dictionary.remove(s);
     if (!has_arg())
       break;




    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to