groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 21/51: [mdoc]: Reset strings between documents.


From: G. Branden Robinson
Subject: [groff] 21/51: [mdoc]: Reset strings between documents.
Date: Sun, 11 Sep 2022 08:15:52 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1db6f86623c7f4bb5271fa5c5e4f1a2e47e030cd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        * 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
 .



reply via email to

[Prev in Thread] Current Thread [Next in Thread]