SECURITY:

fix a buffer overflow vulnerability; bump PKGNAME;
http://www.vuxml.org/openbsd/0393affc-68d8-11d9-9b34-00065bd5b0b6.html
This commit is contained in:
robert 2005-01-17 22:46:05 +00:00
parent 674dd0bfdb
commit 7284b0f29e
2 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.4 2004/12/07 00:23:23 alek Exp $
# $OpenBSD: Makefile,v 1.5 2005/01/17 22:46:05 robert Exp $
COMMENT= "RTF document converter"
VERSION= 0.18.1
DISTNAME= unrtf-${VERSION}
PKGNAME= ${DISTNAME}p0
CATEGORIES= textproc
HOMEPAGE= http://www.gnu.org/software/unrtf/unrtf.html

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-convert_c,v 1.1 2005/01/17 22:46:05 robert Exp $
--- convert.c.orig Mon Jan 17 23:32:14 2005
+++ convert.c Mon Jan 17 23:33:03 2005
@@ -332,7 +332,7 @@
while(w2) {
tmp = word_string (w2);
if (tmp && tmp[0] != '\\')
- strcat(name,tmp);
+ strlcat(name,tmp,sizeof(name) - strlen(name) - 1);
w2=w2->next;
}