Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 65732 Details for
Bug 100265
app-text/gpdf: DoS from XPDF issue
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gpdf-2.8.2-CAN-2005-2097.patch
gpdf-2.8.2-CAN-2005-2097.patch (text/plain), 1.93 KB, created by
Thierry Carrez (RETIRED)
on 2005-08-12 00:59:17 UTC
(
hide
)
Description:
gpdf-2.8.2-CAN-2005-2097.patch
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2005-08-12 00:59:17 UTC
Size:
1.93 KB
patch
obsolete
>Patch to fix CAN-2005-2097. The patch in #163920 doesn't apply to >gpdf, since gpdf uses the gnome print api for rendering. The crux of >that patch is to avoid using the FoFi (font file) classes for fixing >up the embedded truetype font, but instead pass the font to freetype >directly. This patch does the same thing for the gpdf rendering code. > >Kristian Høgsberg <krh@redhat.com> > >--- gpdf-2.8.2/xpdf/GPOutputDev.cc.krh 2005-08-01 11:44:43.000000000 -0400 >+++ gpdf-2.8.2/xpdf/GPOutputDev.cc 2005-08-01 11:45:32.000000000 -0400 >@@ -258,9 +258,6 @@ > } > case fontTrueType: { > FoFiTrueType *ff; >- gint fd; >- gchar *temp_name; >- FILE *f; > gushort *code_to_gid; > > ff = FoFiTrueType::make((char *)contents, length); >@@ -269,16 +266,7 @@ > > code_to_gid = ((Gfx8BitFont *)font)->getCodeToGIDMap(ff); // this is g(oo)malloc'd > >- fd = g_file_open_tmp("gpdf-ttf-XXXXXX", &temp_name, NULL); >- f = fdopen(fd, "wb"); >- ff->writeTTF(&fileWrite, f); > delete ff; >- g_free(contents); >- fclose(f); >- >- g_file_get_contents(temp_name, (gchar **)&contents, &length, NULL); >- unlink(temp_name); >- g_free(temp_name); > > gff = gpdf_font_face_download((const guchar *)font_name, > (const guchar *)"", >@@ -324,28 +312,8 @@ > break; > } > case fontCIDType2: { >- FoFiTrueType *ff; >- gint fd; >- gchar *temp_name; >- FILE *f; > gint n_cids; > gushort *code_to_gid; >- >- ff = FoFiTrueType::make((char *)contents, length); >- if (!ff) >- return getFontFaceFallback(font); >- >- fd = g_file_open_tmp("gpdf-ttf-XXXXXX", &temp_name, NULL); >- f = fdopen(fd, "wb"); >- ff->writeTTF(&fileWrite, f); >- delete ff; >- g_free(contents); >- fclose(f); >- >- g_file_get_contents(temp_name, (gchar **)&contents, &length, NULL); >- unlink(temp_name); >- g_free(temp_name); >- > gff = gpdf_font_face_download((const guchar *)font_name, > (const guchar *)"", > GNOME_FONT_REGULAR, FALSE,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 100265
:
64745
| 65732