diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-07-16 18:28:55 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-07-16 18:28:55 +0000 |
commit | 36fbd1d84a10855aedc11fd5494a83ae20fd828e (patch) | |
tree | 50e56e7303c56ebfe2848cf39d733f83cc194daf /news/ifmail | |
parent | 60f1ea3844a6c3076f2c8ea8da93a221c00362ef (diff) | |
download | FreeBSD-ports-36fbd1d84a10855aedc11fd5494a83ae20fd828e.zip FreeBSD-ports-36fbd1d84a10855aedc11fd5494a83ae20fd828e.tar.gz |
- fix possible coredump for nodelist-entrys with more than 8 flags
Diffstat (limited to 'news/ifmail')
-rw-r--r-- | news/ifmail/Makefile | 1 | ||||
-rw-r--r-- | news/ifmail/files/patch-nodelist | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/news/ifmail/Makefile b/news/ifmail/Makefile index 6d7933d..e757525 100644 --- a/news/ifmail/Makefile +++ b/news/ifmail/Makefile @@ -7,6 +7,7 @@ PORTNAME= ifmail PORTVERSION= 2.15 +PORTREVISION= 1 CATEGORIES= news MASTER_SITES= ${MASTER_SITE_SUNSITE} \ ftp://ftp.average.org/ifmail/ diff --git a/news/ifmail/files/patch-nodelist b/news/ifmail/files/patch-nodelist new file mode 100644 index 0000000..686509a --- /dev/null +++ b/news/ifmail/files/patch-nodelist @@ -0,0 +1,22 @@ +--- ifcico/nodelist.c.orig Sat Oct 4 11:21:44 1997 ++++ ifcico/nodelist.c Mon Jul 16 20:24:13 2001 +@@ -207,7 +207,7 @@ + debug(20,"getnlent: phone %s",nodebuf.phone); + debug(20,"getnlent: speed %u",nodebuf.speed); + debug(20,"getnlent: flags 0x%lx",nodebuf.flags); +- for (j=0;nodebuf.uflags[j];j++) ++ for (j=0; (j < MAXUFLAGS) && nodebuf.uflags[j];j++) + debug(20,"getnlent: uflag %s",nodebuf.uflags[j]); + + return &nodebuf; +--- ifcico/nodelist.h.orig Sat Oct 29 12:19:33 1994 ++++ ifcico/nodelist.h Sun Jul 1 10:57:18 2001 +@@ -3,7 +3,7 @@ + + #include "ftn.h" + +-#define MAXUFLAGS 8 ++#define MAXUFLAGS 16 + + typedef struct _node { + faddr addr; |