diff options
author | ache <ache@FreeBSD.org> | 2001-10-30 11:20:21 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-10-30 11:20:21 +0800 |
commit | cd45ccf49e58db7d582268895d890b3911939355 (patch) | |
tree | 8ad78417d3f15ede73c86fc34785b479b975ec5f | |
parent | db68e103cb8d31b7df27592b5916b2f3992b12e5 (diff) | |
download | freebsd-ports-gnome-cd45ccf49e58db7d582268895d890b3911939355.tar.gz freebsd-ports-gnome-cd45ccf49e58db7d582268895d890b3911939355.tar.zst freebsd-ports-gnome-cd45ccf49e58db7d582268895d890b3911939355.zip |
Fix bug with buffer enlargement
Submitted by: "Tim J. Robbins" <tim@robbins.dropbear.id.au>
-rw-r--r-- | converters/mpack/Makefile | 1 | ||||
-rw-r--r-- | converters/mpack/files/patch-ac | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/converters/mpack/Makefile b/converters/mpack/Makefile index a0a25fe2c191..dbba6ace782a 100644 --- a/converters/mpack/Makefile +++ b/converters/mpack/Makefile @@ -7,6 +7,7 @@ PORTNAME= mpack PORTVERSION= 1.5 +PORTREVISION= 1 CATEGORIES= converters mail news MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/mpack/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src diff --git a/converters/mpack/files/patch-ac b/converters/mpack/files/patch-ac new file mode 100644 index 000000000000..499be8e1cf30 --- /dev/null +++ b/converters/mpack/files/patch-ac @@ -0,0 +1,34 @@ +--- decode.c.old Tue Oct 23 16:14:53 2001 ++++ decode.c Tue Oct 23 16:16:22 2001 +@@ -468,6 +468,7 @@ + alloced += VALUEGROWSIZE; + value = xrealloc(value, alloced); + to = value + alloced - left - 2; ++ left = alloced - 1; + } + if (*from == '\\') { + from++; +@@ -484,6 +485,7 @@ + alloced += VALUEGROWSIZE; + value = xrealloc(value, alloced); + to = value + alloced - left - 2; ++ left = alloced - 1; + } + *to++ = *from++; + } +@@ -573,6 +575,7 @@ + alloced += VALUEGROWSIZE; + value = xrealloc(value, alloced); + to = value + alloced - left - 2; ++ left = alloced - 1; + } + if (*disposition == '\\') { + disposition++; +@@ -590,6 +593,7 @@ + alloced += VALUEGROWSIZE; + value = xrealloc(value, alloced); + to = value + alloced - left - 2; ++ left = alloced - 1; + } + *to++ = *disposition++; + } |