1 |
commit: 03051a29e85276b1bbc05ce58e07a6d1bc1348f0 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Aug 19 13:00:32 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 14:46:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03051a29 |
7 |
|
8 |
app-text/htmldoc: remove unused patches |
9 |
|
10 |
app-text/htmldoc/files/htmldoc-1.8.27-crash.patch | 11 -- |
11 |
app-text/htmldoc/files/htmldoc-fortify-fail.patch | 21 ---- |
12 |
app-text/htmldoc/files/htmldoc-libpng15.patch | 116 --------------------- |
13 |
.../htmldoc/files/htmldoc-sscanf-overflows.patch | 38 ------- |
14 |
4 files changed, 186 deletions(-) |
15 |
|
16 |
diff --git a/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch b/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch |
17 |
deleted file mode 100644 |
18 |
index b339904ae41..00000000000 |
19 |
--- a/app-text/htmldoc/files/htmldoc-1.8.27-crash.patch |
20 |
+++ /dev/null |
21 |
@@ -1,11 +0,0 @@ |
22 |
---- htmldoc/ps-pdf.cxx 2006-08-01 18:58:50.000000000 +0200 |
23 |
-+++ htmldoc/ps-pdf.cxx 2008-04-26 21:19:49.000000000 +0200 |
24 |
-@@ -3624,7 +3624,7 @@ |
25 |
- * Get the width of the page number, leave room for three dots... |
26 |
- */ |
27 |
- |
28 |
-- if (heading >= 0) |
29 |
-+ if (heading >= 0 && heading < num_headings) |
30 |
- { |
31 |
- hpage = heading_pages[heading]; |
32 |
- numberwidth = get_width((uchar *)pages[hpage].page_text, |
33 |
|
34 |
diff --git a/app-text/htmldoc/files/htmldoc-fortify-fail.patch b/app-text/htmldoc/files/htmldoc-fortify-fail.patch |
35 |
deleted file mode 100644 |
36 |
index 32ec8873567..00000000000 |
37 |
--- a/app-text/htmldoc/files/htmldoc-fortify-fail.patch |
38 |
+++ /dev/null |
39 |
@@ -1,21 +0,0 @@ |
40 |
-diff -ur htmldoc-1.8.27~/htmldoc/ps-pdf.cxx htmldoc-1.8.27/htmldoc/ps-pdf.cxx |
41 |
---- htmldoc-1.8.27~/htmldoc/ps-pdf.cxx 2009-08-13 19:32:21.846860508 -0400 |
42 |
-+++ htmldoc-1.8.27/htmldoc/ps-pdf.cxx 2009-08-13 19:40:29.185857503 -0400 |
43 |
-@@ -8619,7 +8619,7 @@ |
44 |
- return (NULL); |
45 |
- } |
46 |
- // Safe because buffer is allocated... |
47 |
-- strcpy((char *)r->data.text.buffer, (char *)data); |
48 |
-+ memcpy((char *)r->data.text.buffer, (char *)data, strlen((char *)data)); |
49 |
- get_color(_htmlTextColor, r->data.text.rgb); |
50 |
- break; |
51 |
- case RENDER_IMAGE : |
52 |
-@@ -8640,7 +8640,7 @@ |
53 |
- return (NULL); |
54 |
- } |
55 |
- // Safe because buffer is allocated... |
56 |
-- strcpy((char *)r->data.link, (char *)data); |
57 |
-+ memcpy((char *)r->data.link, (char *)data, strlen((char *)data)); |
58 |
- break; |
59 |
- } |
60 |
- |
61 |
|
62 |
diff --git a/app-text/htmldoc/files/htmldoc-libpng15.patch b/app-text/htmldoc/files/htmldoc-libpng15.patch |
63 |
deleted file mode 100644 |
64 |
index 7b834c304d2..00000000000 |
65 |
--- a/app-text/htmldoc/files/htmldoc-libpng15.patch |
66 |
+++ /dev/null |
67 |
@@ -1,116 +0,0 @@ |
68 |
-http://bugs.gentoo.org/385521 |
69 |
-http://www.htmldoc.org/str.php?L243+P0+S-2+C0+I0+E0+M10+Q |
70 |
- |
71 |
---- htmldoc/image.cxx |
72 |
-+++ htmldoc/image.cxx |
73 |
-@@ -1472,6 +1472,9 @@ image_load_png(image_t *img, /* I - Imag |
74 |
- png_bytep *rows; /* PNG row pointers */ |
75 |
- uchar *inptr, /* Input pixels */ |
76 |
- *outptr; /* Output pixels */ |
77 |
-+ png_bytep trans_alpha; |
78 |
-+ int num_trans; |
79 |
-+ png_color_16p trans_color; |
80 |
- |
81 |
- |
82 |
- /* |
83 |
-@@ -1499,7 +1502,7 @@ image_load_png(image_t *img, /* I - Imag |
84 |
- |
85 |
- rows = NULL; |
86 |
- |
87 |
-- if (setjmp(pp->jmpbuf)) |
88 |
-+ if (setjmp(png_jmpbuf(pp))) |
89 |
- { |
90 |
- progress_error(HD_ERROR_BAD_FORMAT, "PNG file contains errors!"); |
91 |
- |
92 |
-@@ -1526,7 +1529,7 @@ image_load_png(image_t *img, /* I - Imag |
93 |
- |
94 |
- png_read_info(pp, info); |
95 |
- |
96 |
-- if (info->color_type & PNG_COLOR_MASK_PALETTE) |
97 |
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE) |
98 |
- { |
99 |
- png_set_expand(pp); |
100 |
- |
101 |
-@@ -1535,15 +1538,15 @@ image_load_png(image_t *img, /* I - Imag |
102 |
- if (Encryption) |
103 |
- img->use ++; |
104 |
- } |
105 |
-- else if (info->bit_depth < 8) |
106 |
-+ else if (png_get_bit_depth(pp, info) < 8) |
107 |
- { |
108 |
- png_set_packing(pp); |
109 |
- png_set_expand(pp); |
110 |
- } |
111 |
-- else if (info->bit_depth == 16) |
112 |
-+ else if (png_get_bit_depth(pp, info) == 16) |
113 |
- png_set_strip_16(pp); |
114 |
- |
115 |
-- if (info->color_type & PNG_COLOR_MASK_COLOR) |
116 |
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR) |
117 |
- { |
118 |
- depth = 3; |
119 |
- img->depth = gray ? 1 : 3; |
120 |
-@@ -1554,10 +1557,11 @@ image_load_png(image_t *img, /* I - Imag |
121 |
- img->depth = 1; |
122 |
- } |
123 |
- |
124 |
-- img->width = info->width; |
125 |
-- img->height = info->height; |
126 |
-+ img->width = png_get_image_width(pp, info); |
127 |
-+ img->height = png_get_image_height(pp, info); |
128 |
- |
129 |
-- if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans) |
130 |
-+ png_get_tRNS(pp, info, &trans_alpha, &num_trans, &trans_color); |
131 |
-+ if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans) |
132 |
- { |
133 |
- if ((PSLevel == 0 && PDFVersion >= 14) || PSLevel == 3) |
134 |
- image_need_mask(img, 8); |
135 |
-@@ -1571,14 +1575,14 @@ image_load_png(image_t *img, /* I - Imag |
136 |
- |
137 |
- #ifdef DEBUG |
138 |
- printf("color_type=0x%04x, depth=%d, img->width=%d, img->height=%d, img->depth=%d\n", |
139 |
-- info->color_type, depth, img->width, img->height, img->depth); |
140 |
-- if (info->color_type & PNG_COLOR_MASK_COLOR) |
141 |
-+ png_get_color_type(pp, info), depth, img->width, img->height, img->depth); |
142 |
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR) |
143 |
- puts(" COLOR"); |
144 |
- else |
145 |
- puts(" GRAYSCALE"); |
146 |
-- if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans) |
147 |
-+ if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans) |
148 |
- puts(" ALPHA"); |
149 |
-- if (info->color_type & PNG_COLOR_MASK_PALETTE) |
150 |
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE) |
151 |
- puts(" PALETTE"); |
152 |
- #endif // DEBUG |
153 |
- |
154 |
-@@ -1594,9 +1598,9 @@ image_load_png(image_t *img, /* I - Imag |
155 |
- * Allocate pointers... |
156 |
- */ |
157 |
- |
158 |
-- rows = (png_bytep *)calloc(info->height, sizeof(png_bytep)); |
159 |
-+ rows = (png_bytep *)calloc(png_get_image_height(pp, info), sizeof(png_bytep)); |
160 |
- |
161 |
-- for (i = 0; i < (int)info->height; i ++) |
162 |
-+ for (i = 0; i < (int)png_get_image_height(pp, info); i ++) |
163 |
- rows[i] = img->pixels + i * img->width * depth; |
164 |
- |
165 |
- /* |
166 |
-@@ -1610,7 +1614,7 @@ image_load_png(image_t *img, /* I - Imag |
167 |
- * Generate the alpha mask as necessary... |
168 |
- */ |
169 |
- |
170 |
-- if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans) |
171 |
-+ if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans) |
172 |
- { |
173 |
- #ifdef DEBUG |
174 |
- for (inptr = img->pixels, i = 0; i < img->height; i ++) |
175 |
-@@ -1639,7 +1643,7 @@ image_load_png(image_t *img, /* I - Imag |
176 |
- * Reformat the data as necessary for the reader... |
177 |
- */ |
178 |
- |
179 |
-- if (gray && info->color_type & PNG_COLOR_MASK_COLOR) |
180 |
-+ if (gray && png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR) |
181 |
- { |
182 |
- /* |
183 |
- * Greyscale output needed... |
184 |
|
185 |
diff --git a/app-text/htmldoc/files/htmldoc-sscanf-overflows.patch b/app-text/htmldoc/files/htmldoc-sscanf-overflows.patch |
186 |
deleted file mode 100644 |
187 |
index 3a8d4edd31a..00000000000 |
188 |
--- a/app-text/htmldoc/files/htmldoc-sscanf-overflows.patch |
189 |
+++ /dev/null |
190 |
@@ -1,38 +0,0 @@ |
191 |
-Fix several insecure calls to sscanf(), bug 278186. Patch by a3li@g.o. |
192 |
- |
193 |
-diff -ru a/htmldoc/htmllib.cxx b/htmldoc/htmllib.cxx |
194 |
---- a/htmldoc/htmllib.cxx 2006-06-07 19:43:52.000000000 +0200 |
195 |
-+++ b/htmldoc/htmllib.cxx 2009-08-01 19:52:46.301099436 +0200 |
196 |
-@@ -2139,7 +2139,7 @@ |
197 |
- * assigned charset... |
198 |
- */ |
199 |
- |
200 |
-- if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%s", &width, glyph) != 2) |
201 |
-+ if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%63s", &width, glyph) != 2) |
202 |
- continue; |
203 |
- |
204 |
- for (ch = 0; ch < 256; ch ++) |
205 |
-diff -ru a/htmldoc/ps-pdf.cxx b/htmldoc/ps-pdf.cxx |
206 |
---- a/htmldoc/ps-pdf.cxx 2006-08-01 18:58:50.000000000 +0200 |
207 |
-+++ b/htmldoc/ps-pdf.cxx 2009-08-01 19:53:14.300610480 +0200 |
208 |
-@@ -12512,7 +12512,7 @@ |
209 |
- * assigned charset... |
210 |
- */ |
211 |
- |
212 |
-- if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%s", &width, glyph) != 2) |
213 |
-+ if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%63s", &width, glyph) != 2) |
214 |
- continue; |
215 |
- |
216 |
- for (ch = 0; ch < 256; ch ++) |
217 |
-diff -ru a/htmldoc/util.cxx b/htmldoc/util.cxx |
218 |
---- a/htmldoc/util.cxx 2005-04-24 21:20:32.000000000 +0200 |
219 |
-+++ b/htmldoc/util.cxx 2009-08-01 19:52:14.469652088 +0200 |
220 |
-@@ -484,7 +484,7 @@ |
221 |
- PageWidth = 595; |
222 |
- PageLength = 792; |
223 |
- } |
224 |
-- else if (sscanf(size, "%fx%f%s", &width, &length, units) >= 2) |
225 |
-+ else if (sscanf(size, "%fx%f%254s", &width, &length, units) >= 2) |
226 |
- { |
227 |
- /* |
228 |
- * Custom size... |