summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2012-02-11 12:50:14 +0000
committerPacho Ramos <pacho@gentoo.org>2012-02-11 12:50:14 +0000
commit5f1a0d4dd3d0ecfc85966af890ff687f46162dce (patch)
treeec1c3a0fe3590654306512be246667989d31ecf1 /app-text/htmldoc/files
parentFix USE=gmp feature selection. It's a bug #369685 spotted by Jan Vereecke and... (diff)
downloadhistorical-5f1a0d4dd3d0ecfc85966af890ff687f46162dce.tar.gz
historical-5f1a0d4dd3d0ecfc85966af890ff687f46162dce.tar.bz2
historical-5f1a0d4dd3d0ecfc85966af890ff687f46162dce.zip
Fix crash, bug #219373 by Marek Cruz.
Package-Manager: portage-2.1.10.45/cvs/Linux x86_64
Diffstat (limited to 'app-text/htmldoc/files')
-rw-r--r--app-text/htmldoc/files/htmldoc-1.8.27-crash.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch b/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch
new file mode 100644
index 000000000000..b339904ae412
--- /dev/null
+++ b/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch
@@ -0,0 +1,11 @@
+--- htmldoc/ps-pdf.cxx 2006-08-01 18:58:50.000000000 +0200
++++ htmldoc/ps-pdf.cxx 2008-04-26 21:19:49.000000000 +0200
+@@ -3624,7 +3624,7 @@
+ * Get the width of the page number, leave room for three dots...
+ */
+
+- if (heading >= 0)
++ if (heading >= 0 && heading < num_headings)
+ {
+ hpage = heading_pages[heading];
+ numberwidth = get_width((uchar *)pages[hpage].page_text,