1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Add patch that fixes a buffer overflow.

Requested by:	miwi
Approved by:	portmgr (pav, erwin)
This commit is contained in:
Florent Thoumie 2007-10-30 21:07:49 +00:00
parent 3c92191760
commit b27f549ad3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202445
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libXfont
PORTVERSION= 1.3.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11-fonts

View File

@ -0,0 +1,11 @@
--- src/fontfile/catalogue.c.orig
+++ src/fontfile/catalogue.c
@@ -156,7 +156,7 @@ CatalogueRescan (FontPathElementPtr fpe)
while (entry = readdir(dir), entry != NULL)
{
snprintf(link, sizeof link, "%s/%s", path, entry->d_name);
- len = readlink(link, dest, sizeof dest);
+ len = readlink(link, dest, sizeof dest - 1);
if (len < 0)
continue;