diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-02-09 12:04:25 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-02-09 12:04:25 +0000 |
commit | a9a3b3d099f3f42b9cd63e716d5376ae231dfbf8 (patch) | |
tree | 74dbaf70a06a7401b401dad6784c5c047825efb7 /x11-servers/XFree86-4-Server/files/patch-dirfile.c | |
parent | Add WeeChat 0.0.5. (diff) |
Fix buffer overflow in font alias handling code.
Approved by: so
Diffstat (limited to '')
-rw-r--r-- | x11-servers/XFree86-4-Server/files/patch-dirfile.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-servers/XFree86-4-Server/files/patch-dirfile.c b/x11-servers/XFree86-4-Server/files/patch-dirfile.c new file mode 100644 index 000000000000..b0891cdd6ea8 --- /dev/null +++ b/x11-servers/XFree86-4-Server/files/patch-dirfile.c @@ -0,0 +1,13 @@ +--- lib/font/fontfile/dirfile.c.orig Fri May 31 20:45:50 2002 ++++ lib/font/fontfile/dirfile.c Thu Feb 5 00:19:57 2004 +@@ -286,6 +286,10 @@ + status = AllocError; + break; + case NAME: ++ if (strlen(lexToken) >= sizeof(alias)) { ++ status = BadFontPath; ++ break; ++ } + strcpy(alias, lexToken); + token = lexAlias(file, &lexToken); + switch (token) { |