mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
Fix segmentation fault on invalid input.
PR: 49998 Submitted by: IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp> Upgrade to 3.1. Disown this port.
This commit is contained in:
parent
e822a05344
commit
c583c7157f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83581
@ -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
|
||||
|
@ -1 +1 @@
|
||||
MD5 (rman-3.0.9.tar.gz) = f29a3bde5b35d1624f41357b96262f8f
|
||||
MD5 (rman-3.1.tar.gz) = 62924b8f9773999b91450cc317f5ddb9
|
||||
|
@ -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
|
||||
|
||||
|
26
textproc/rman/files/patch-rman.c
Normal file
26
textproc/rman/files/patch-rman.c
Normal file
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user