diff options
author | tg <tg@FreeBSD.org> | 2003-06-25 20:21:54 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2003-06-25 20:21:54 +0800 |
commit | 42c0b7293e704c938880af13c84451fdd3adf09b (patch) | |
tree | 9933292e0705e7d3af17e4035398d5c68aad4519 /textproc/rman | |
parent | 81348c0358ef7db1aa37f66eec300f2fba715f64 (diff) | |
download | freebsd-ports-graphics-42c0b7293e704c938880af13c84451fdd3adf09b.tar.gz freebsd-ports-graphics-42c0b7293e704c938880af13c84451fdd3adf09b.tar.zst freebsd-ports-graphics-42c0b7293e704c938880af13c84451fdd3adf09b.zip |
Fix segmentation fault on invalid input.
PR: 49998
Submitted by: IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp>
Upgrade to 3.1. Disown this port.
Diffstat (limited to 'textproc/rman')
-rw-r--r-- | textproc/rman/Makefile | 4 | ||||
-rw-r--r-- | textproc/rman/distinfo | 2 | ||||
-rw-r--r-- | textproc/rman/files/patch-aa | 14 | ||||
-rw-r--r-- | textproc/rman/files/patch-rman.c | 26 |
4 files changed, 36 insertions, 10 deletions
diff --git a/textproc/rman/Makefile b/textproc/rman/Makefile index 6fd0ad9e54a..7dbb26d7217 100644 --- a/textproc/rman/Makefile +++ b/textproc/rman/Makefile @@ -6,11 +6,11 @@ # PORTNAME= rman -PORTVERSION= 3.0.9 +PORTVERSION= 3.1 CATEGORIES= textproc MASTER_SITES= ftp://polyglot.sourceforge.net/pub/polyglotman/ -MAINTAINER= tg@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Reverse compile man pages from formatted form MAN1= rman.1 diff --git a/textproc/rman/distinfo b/textproc/rman/distinfo index 07c687cb93f..0c5549aff04 100644 --- a/textproc/rman/distinfo +++ b/textproc/rman/distinfo @@ -1 +1 @@ -MD5 (rman-3.0.9.tar.gz) = f29a3bde5b35d1624f41357b96262f8f +MD5 (rman-3.1.tar.gz) = 62924b8f9773999b91450cc317f5ddb9 diff --git a/textproc/rman/files/patch-aa b/textproc/rman/files/patch-aa index d64b141037f..c016d904910 100644 --- a/textproc/rman/files/patch-aa +++ b/textproc/rman/files/patch-aa @@ -1,14 +1,14 @@ -*** Makefile.orig Wed Jun 21 18:05:56 2000 ---- Makefile Mon Jun 26 20:15:01 2000 +diff -c /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/Makefile.orig /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/Makefile +*** /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/Makefile.orig Sun Mar 30 00:45:20 2003 +--- /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/Makefile Mon May 12 18:50:36 2003 *************** -*** 15,31 **** +*** 15,30 **** # this must be a directory that's in your bin PATH. # MANDIR holds the man page. ! BINDIR = /usr/local/bin #BINDIR = //C/bin -! MANDIR = /home/auspex/h/bair/phelps/man/man1 -! #MANDIR = /usr/local/man/man1 +! MANDIR = /usr/local/man/man1 ### if you have GNU gcc v2.x, use these definitions @@ -19,13 +19,12 @@ ### if you just have a standard UNIX, use these instead of GNU. ### CC must be an ANSI C compiler ---- 15,31 ---- +--- 15,30 ---- # this must be a directory that's in your bin PATH. # MANDIR holds the man page. ! BINDIR = ${PREFIX}/bin #BINDIR = //C/bin -! #MANDIR = /home/auspex/h/bair/phelps/man/man1 ! MANDIR = ${PREFIX}/man/man1 @@ -37,3 +36,4 @@ ### if you just have a standard UNIX, use these instead of GNU. ### CC must be an ANSI C compiler + diff --git a/textproc/rman/files/patch-rman.c b/textproc/rman/files/patch-rman.c new file mode 100644 index 00000000000..4568c0637b5 --- /dev/null +++ b/textproc/rman/files/patch-rman.c @@ -0,0 +1,26 @@ +diff -c /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/rman.c.orig /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/rman.c +--- /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/rman.c.orig Sun Mar 30 00:45:18 2003 ++++ /home/tg/work/FreeBSD/ports/local/rman/work/rman-3.1/rman.c Mon May 12 18:59:41 2003 +@@ -3729,11 +3729,15 @@ + q=strchr(p, ' ');
+ if (q!=NULL) *q++='\0';
+ strcpy(manName, p);
+- for (p=q; isspace(*p); p++) /*nada*/;
+- if (*p) {
+- q=strchr(p,' ');
+- if (q!=NULL) *q++='\0';
+- strcpy(manSect, p);
++ if (q) {
++ for (p=q; isspace(*p); p++) /*nada*/;
++ if (*p) {
++ q=strchr(p,' ');
++ if (q!=NULL) *q++='\0';
++ strcpy(manSect, p);
++ }
++ } else {
++ strcpy(manSect, "?");
+ }
+ }
+ sI=0;
+ + |