ports/misc/amanda25-server/files/patch-server-src_infofile.c
Sam Lawrance 7599294502 - 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)
2005-07-30 16:21:10 +00:00

11 lines
369 B
C

--- 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)) {