diff options
author | ache <ache@FreeBSD.org> | 2001-10-30 03:20:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-10-30 03:20:21 +0000 |
commit | cd45ccf49e58db7d582268895d890b3911939355 (patch) | |
tree | 8ad78417d3f15ede73c86fc34785b479b975ec5f /converters/mpack | |
parent | db68e103cb8d31b7df27592b5916b2f3992b12e5 (diff) | |
download | FreeBSD-ports-cd45ccf49e58db7d582268895d890b3911939355.zip FreeBSD-ports-cd45ccf49e58db7d582268895d890b3911939355.tar.gz |
Fix bug with buffer enlargement
Submitted by: "Tim J. Robbins" <tim@robbins.dropbear.id.au>
Diffstat (limited to 'converters/mpack')
-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 a0a25fe..dbba6ac 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 0000000..499be8e --- /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++; + } |