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:
parent
3c92191760
commit
b27f549ad3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202445
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libXfont
|
||||
PORTVERSION= 1.3.1
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= x11-fonts
|
||||
|
||||
|
11
x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c
Normal file
11
x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user