Date: Fri, 14 Mar 2003 16:55:31 +0900 From: IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/49998: textproc/rman(rman-3.0.9) segmentation fault on invalid input Message-ID: <3E718AF3.A7DF1179@ht.sakura.ne.jp>
next in thread | raw e-mail | index | archive | help
>Number: 49998 >Category: ports >Synopsis: textproc/rman(rman-3.0.9) segmentation fault on invalid input >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 14 00:00:19 PST 2003 >Closed-Date: >Last-Modified: >Originator: IIJIMA Hiromitsu >Release: FreeBSD 4.7-RELEASE-p3 i386 >Organization: DENNOU GEDOU GAKKAI, N.D.D. http://www.dennougedougakkai-ndd.org >Environment: System: FreeBSD sodans.usata.org 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Wed Jan 22 14:50:19 JST 2003 root@www.my.domain:/usr/src/sys/compile/RENTALv6 i386 >Description: rman causes segmentation fault on a certaion invalid input, i.e. a '.TH' command with single argument. I have sent the bugfix to original author 9 months ago and heard that it will be fixed on next release, but no next version is released yet. >How-To-Repeat: % echo '.TH foo' | rman >Fix: Apply the following patch. --- rman.c.bak Thu Jun 22 10:05:56 2000 +++ rman.c Fri Jun 14 17:46:24 2002 @@ -4198,12 +4198,16 @@ q=strchr(p, ' '); if (q!=NULL) *q++='\0'; strcpy(manName, 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; finitDoc=1; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E718AF3.A7DF1179>