diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-30 03:20:21 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-30 03:20:21 +0000 |
commit | e4e65b29ffce0ff759e8d44ae2165dc426b7a756 (patch) | |
tree | 969ba498efcb1df73f19f5b1d94d841afd6be7d5 /converters/mpack | |
parent | 3e2785d4ab84b6d32b6572be7d200db939346b78 (diff) | |
download | ports-e4e65b29ffce0ff759e8d44ae2165dc426b7a756.tar.gz ports-e4e65b29ffce0ff759e8d44ae2165dc426b7a756.zip |
Fix bug with buffer enlargement
Submitted by: "Tim J. Robbins" <tim@robbins.dropbear.id.au>
Notes
Notes:
svn path=/head/; revision=49358
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 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++; + } |