Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 1998 02:50:35 +0800 (CST)
From:      yssu@CCCA.NCTU.edu.tw (Yen-Shuo Su)
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5891: Bug fix of cgiparse-0.8d
Message-ID:  <199803011850.CAA00543@serv.ccca.nctu.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         5891
>Category:       ports
>Synopsis:       Bug fix of cgiparse-0.8d
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar  1 11:00:00 PST 1998
>Last-Modified:
>Originator:     Yen-Shuo Su
>Organization:
Campus Computer Communication Association
>Release:        FreeBSD 2.2.5-STABLE i386
>Environment:


>Description:

	Bug in www/cgiparse ver 0.8d
	All value's of cgi post data will be parsed incorrectly,
	such like [&Request]->[=None], instead of correct value,
	[Request]->[None].

>How-To-Repeat:

	This will cause all cgi programs linked with cgiparse work
	incorrectly.

>Fix:

This fix has been sent to origin author.
Maybe it will be fixed in next version.
	
--- cgi.c.orig  Mon Mar  2 02:42:37 1998
+++ cgi.c       Mon Mar  2 02:45:33 1998
@@ -264,7 +264,7 @@
        strncpy(d, e, c);
        d[c] = 0;

-       if (*pos == '\0')       /* see if we are ending at a null */
+       if (*pos != '\0')       /* see if we are ending at a null */
                *a = pos + 1;   /* if not, point at next char */
        else
                *a = pos;       /* if so, then point at null */
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803011850.CAA00543>