gbranden pushed a commit to branch master
in repository groff.

commit 1db6f86623c7f4bb5271fa5c5e4f1a2e47e030cd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 6 19:36:16 2022 -0500

    [mdoc]: Reset strings between documents.
    
    * tmac/mdoc/doc-common (doc-end-macro): Reset strings to reduce info
      leaks from one man page to the next.
    
    Fixes <https://savannah.gnu.org/bugs/?62774> (3/7).
---
 ChangeLog            | 7 +++++++
 tmac/mdoc/doc-common | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 31480835f..27f278c35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-06  G. Branden Robinson <[email protected]>
+
+       * tmac/mdoc/doc-common (doc-end-macro): Reset strings to reduce
+       info leaks from one man page to the next.
+
+       Fixes <https://savannah.gnu.org/bugs/?62774> (3/7).
+
 2022-09-06  G. Branden Robinson <[email protected]>
 
        * tmac/mdoc/doc-common (Dt): Stop reinitializing `doc-volume`
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 7dc144f51..3d704fd98 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -1050,6 +1050,14 @@
 .  ch doc-header
 .  bp
 .  nr doc-is-first-page-of-document 1
+.
+.  \" Reset strings to reduce info leaks from one man page to the next.
+.  ds doc-date-string UNDATED\"
+.  ds doc-document-title UNTITLED\"
+.  ds doc-volume LOCAL\"
+.  ds doc-section \" empty
+.  ds doc-operating-system \" empty
+.  ds doc-topic-name \" empty
 ..
 .ec
 .

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

Reply via email to