Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 155989 Details for
Bug 225419
x11-base/xorg-server Multiple vulnerabilities in X server extensions (CVE-2008-1377, CVE-2008-1379, CVE-2008-2360, CVE-2008-2361, CVE-2008-2362)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cve-2008-2360
xorg-xserver-1.4-cve-2008-2360.diff (text/plain), 976 bytes, created by
Matthias Geerdsen (RETIRED)
on 2008-06-08 18:44:50 UTC
(
hide
)
Description:
cve-2008-2360
Filename:
MIME Type:
Creator:
Matthias Geerdsen (RETIRED)
Created:
2008-06-08 18:44:50 UTC
Size:
976 bytes
patch
obsolete
>diff --git a/render/glyph.c b/render/glyph.c >index 583a52b..42ae65d 100644 >--- a/render/glyph.c >+++ b/render/glyph.c >@@ -42,6 +42,12 @@ > #include "picturestr.h" > #include "glyphstr.h" > >+#if HAVE_STDINT_H >+#include <stdint.h> >+#elif !defined(UINT32_MAX) >+#define UINT32_MAX 0xffffffffU >+#endif >+ > /* > * From Knuth -- a good choice for hash/rehash values is p, p-2 where > * p and p-2 are both prime. These tables are sized to have an extra 10% >@@ -626,8 +632,12 @@ AllocateGlyph (xGlyphInfo *gi, int fdepth) > int size; > GlyphPtr glyph; > int i; >- >- size = gi->height * PixmapBytePad (gi->width, glyphDepths[fdepth]); >+ size_t padded_width; >+ >+ padded_width = PixmapBytePad (gi->width, glyphDepths[fdepth]); >+ if (gi->height && padded_width > (UINT32_MAX - sizeof(GlyphRec))/gi->height) >+ return 0; >+ size = gi->height * padded_width; > glyph = (GlyphPtr) xalloc (size + sizeof (GlyphRec)); > if (!glyph) > return 0;
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 225419
:
155985
|
155987
| 155989 |
155991
|
155993
|
156325