pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/htmldoc Fix pointer abuse.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57daad208fd1
branches:  trunk
changeset: 356023:57daad208fd1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 17 14:20:14 2016 +0000

description:
Fix pointer abuse.

diffstat:

 www/htmldoc/distinfo                          |   3 ++-
 www/htmldoc/patches/patch-htmldoc_htmlsep.cxx |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 7df92d8a03dc -r 57daad208fd1 www/htmldoc/distinfo
--- a/www/htmldoc/distinfo      Sat Dec 17 14:19:27 2016 +0000
+++ b/www/htmldoc/distinfo      Sat Dec 17 14:20:14 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2015/11/04 02:46:54 agc Exp $
+$NetBSD: distinfo,v 1.13 2016/12/17 14:20:14 joerg Exp $
 
 SHA1 (htmldoc-1.8.27-source.tar.bz2) = 472908e0aafed1cedfbacd8ed3168734aebdec4b
 RMD160 (htmldoc-1.8.27-source.tar.bz2) = 9605a5894675439f5fae405fb060972e19f33c7e
@@ -9,3 +9,4 @@
 SHA1 (patch-ac) = bf9036087e03095d51ee064e1f193c899848adff
 SHA1 (patch-ad) = 94e5f10387ede380b7579392e41234ff832f1295
 SHA1 (patch-ae) = 1d77dd5120605881e83bf31ee07fa9fd73619cd3
+SHA1 (patch-htmldoc_htmlsep.cxx) = be66659cc83047ced67e2c73af9f4052962cdc50
diff -r 7df92d8a03dc -r 57daad208fd1 www/htmldoc/patches/patch-htmldoc_htmlsep.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/htmldoc/patches/patch-htmldoc_htmlsep.cxx     Sat Dec 17 14:20:14 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-htmldoc_htmlsep.cxx,v 1.1 2016/12/17 14:20:14 joerg Exp $
+
+Don't check the pointer, but the pointed to value.
+
+--- htmldoc/htmlsep.cxx.orig   2016-12-17 10:25:12.905636738 +0000
++++ htmldoc/htmlsep.cxx
+@@ -536,7 +536,7 @@ write_doc(FILE   **out,                    // I - Output 
+     if (t->markup >= MARKUP_H1 && t->markup < (MARKUP_H1 + TocLevels) &&
+         htmlGetVariable(t, (uchar *)"_HD_OMIT_TOC") == NULL)
+     {
+-      if (heading >= 0)
++      if (*heading >= 0)
+         write_footer(out, *heading);
+ 
+       (*heading) ++;



Home | Main Index | Thread Index | Old Index