aboutsummaryrefslogtreecommitdiffstats
path: root/misc/amanda26-server/files
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2005-07-31 00:21:10 +0800
committerSam Lawrance <lawrance@FreeBSD.org>2005-07-31 00:21:10 +0800
commit7599294502b643eb20e3d8a2bd54f287390ba487 (patch)
treef5427400d56a0f3a1ad3cc79f6cc525e2c80e50d /misc/amanda26-server/files
parent819cb94b17d7428bc911565ada0f4fae27bb8582 (diff)
downloadfreebsd-ports-7599294502b643eb20e3d8a2bd54f287390ba487.tar.gz
freebsd-ports-7599294502b643eb20e3d8a2bd54f287390ba487.tar.zst
freebsd-ports-7599294502b643eb20e3d8a2bd54f287390ba487.zip
- Add a patch to fix a buffer overflow crash (tended to show
itself on 4.x systems). - Bump PORTREVISION. PR: ports/81104 Submitted by: Laurent DAVERIO <daverio@cri.ensmp.fr> (PR) John E Hein <jhein@timing.com> (fix)
Notes
Notes: svn path=/head/; revision=140480
Diffstat (limited to 'misc/amanda26-server/files')
-rw-r--r--misc/amanda26-server/files/patch-server-src_infofile.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/amanda26-server/files/patch-server-src_infofile.c b/misc/amanda26-server/files/patch-server-src_infofile.c
new file mode 100644
index 000000000000..e826e411303e
--- /dev/null
+++ b/misc/amanda26-server/files/patch-server-src_infofile.c
@@ -0,0 +1,11 @@
+--- server-src/infofile.c.orig Wed Mar 16 11:15:28 2005
++++ server-src/infofile.c Thu Jul 7 14:12:54 2005
+@@ -274,7 +274,7 @@
+ rc = 0;
+
+ nb_history = 0;
+- for(i=0;i<=NB_HISTORY+1;i++) {
++ for(i=0;i<sizeof(info->history)/sizeof(info->history[0]);i++) {
+ info->history[i].level = -2;
+ }
+ for(rc = -2; (line = agets(infof)) != NULL; free(line)) {