groff-commit
[Top][All Lists]
Advanced

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

[groff] 12/18: [grohtml]: Fix Savannah #61748.


From: G. Branden Robinson
Subject: [groff] 12/18: [grohtml]: Fix Savannah #61748.
Date: Sun, 2 Jan 2022 10:33:59 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 57fac864952a671593647ae85751feb3a54971fd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Dec 31 12:11:19 2021 +1100

    [grohtml]: Fix Savannah #61748.
    
    * src/devices/grohtml/post-html.cpp (style::style): Add initializer to
      argumentless constructor to avoid later read from unitialized memory
      in `html_printer::do_font`.
    
    Fixes <https://savannah.gnu.org/bugs/?61748>.
---
 ChangeLog                         | 8 ++++++++
 src/devices/grohtml/post-html.cpp | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 63a293b6..ee8737d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-12-31  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/devices/grohtml/post-html.cpp (style::style): Add
+       initializer to argumentless constructor to avoid later read from
+       unitialized memory in `html_printer::do_font`.
+
+       Fixes <https://savannah.gnu.org/bugs/?61748>.
+
 2021-12-31  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [groff]: Add regression test for Savannah #61748.
diff --git a/src/devices/grohtml/post-html.cpp 
b/src/devices/grohtml/post-html.cpp
index a1018e19..5be5e997 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -324,7 +324,7 @@ struct style {
 };
 
 style::style()
-  : f(NULL)
+  : f(NULL), point_size(-1)
 {
 }
 



reply via email to

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