Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 150950 Details for
Bug 234055
CVE-2007-1351 Multiple font integer overflows (CVE-2007-1352)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed upstream patch
libXfont.diff (text/plain), 1.50 KB, created by
Josh Bressers
on 2007-03-26 20:27:39 UTC
(
hide
)
Description:
Proposed upstream patch
Filename:
MIME Type:
Creator:
Josh Bressers
Created:
2007-03-26 20:27:39 UTC
Size:
1.50 KB
patch
obsolete
>diff --git a/src/bitmap/bdfread.c b/src/bitmap/bdfread.c >index acb77e9..a6f0c1e 100644 >--- a/src/bitmap/bdfread.c >+++ b/src/bitmap/bdfread.c >@@ -65,6 +65,12 @@ from The Open Group. > #include <X11/fonts/bitmap.h> > #include <X11/fonts/bdfint.h> > >+#if HAVE_STDINT_H >+#include <stdint.h> >+#elif !defined(INT32_MAX) >+#define INT32_MAX 0x7fffffff >+#endif >+ > #define INDICES 256 > #define MAXENCODING 0xFFFF > #define BDFLINELEN 1024 >@@ -288,6 +294,11 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState, > bdfError("invalid number of CHARS in BDF file\n"); > return (FALSE); > } >+ if (nchars > INT32_MAX / sizeof(CharInfoRec)) { >+ bdfError("Couldn't allocate pCI (%d*%d)\n", nchars, >+ sizeof(CharInfoRec)); >+ goto BAILOUT; >+ } > ci = (CharInfoPtr) xalloc(nchars * sizeof(CharInfoRec)); > if (!ci) { > bdfError("Couldn't allocate pCI (%d*%d)\n", nchars, >diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c >index aae1f2e..cf68a54 100644 >--- a/src/fontfile/fontdir.c >+++ b/src/fontfile/fontdir.c >@@ -38,9 +38,17 @@ in this Software without prior written authorization from The Open Group. > #include <X11/fonts/fntfilst.h> > #include <X11/keysym.h> > >+#if HAVE_STDINT_H >+#include <stdint.h> >+#elif !defined(INT32_MAX) >+#define INT32_MAX 0x7fffffff >+#endif >+ > Bool > FontFileInitTable (FontTablePtr table, int size) > { >+ if (size < 0 || (size > INT32_MAX/sizeof(FontEntryRec))) >+ return FALSE; > if (size) > { > table->entries = (FontEntryPtr) xalloc(sizeof(FontEntryRec) * size); >
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 234055
: 150950