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 /converters/mpack/files | |
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>
Diffstat (limited to 'converters/mpack/files')
-rw-r--r-- | converters/mpack/files/patch-ac | 34 |
1 files changed, 34 insertions, 0 deletions
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++; + } |