Skip site navigation (1)Skip section navigation (2)
Date:      31 Jan 2005 18:13:34 -0000
From:      Thomas-Martin Seck <tmseck@netcologne.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/76913: [Maintainer] www/gatling: correct HTTP range handling
Message-ID:  <20050131181334.61638.qmail@laurel.tmseck.homedns.org>
Resent-Message-ID: <200501311820.j0VIK87t006611@freefall.freebsd.org>

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

>Number:         76913
>Category:       ports
>Synopsis:       [Maintainer] www/gatling: correct HTTP range handling
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 31 18:20:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
a private site in Germany
>Environment:
FreeBSD ports collection as of Jan 31, 2005.

	
>Description:
Correct an off-by-one error in HTTP range handling.
Patch obtained from: gatling CVS

Note to committer:
please 'cvs add' files/patch-gatling.c
	
>How-To-Repeat:
	
>Fix:
Apply this patch:
Index: files/patch-gatling.c
===================================================================
--- files/patch-gatling.c	(.../www/gatling)	(revision 0)
+++ files/patch-gatling.c	(.../local/gatling)	(revision 377)
@@ -0,0 +1,19 @@
+--- gatling.c.orig	Wed Jul 28 15:23:51 2004
++++ gatling.c	Mon Jan 31 18:42:03 2005
+@@ -1261,6 +1261,7 @@ e404:
+ 		++c;
+ 		if ((i=scan_ulonglong(c,&range_last))) {
+ 		  if (!i) goto rangeerror;
++		  ++range_last;
+ 		}
+ 	      }
+ 	    } else {
+@@ -1311,7 +1312,7 @@ rangeerror:
+ 	  c+=fmt_str(c,"\r\nContent-Range: bytes ");
+ 	  c+=fmt_ulonglong(c,range_first);
+ 	  c+=fmt_str(c,"-");
+-	  c+=fmt_ulonglong(c,range_last);
++	  c+=fmt_ulonglong(c,range_last-1);
+ 	  c+=fmt_str(c,"/");
+ 	  c+=fmt_ulonglong(c,ss.st_size);
+ 	}
Index: Makefile
===================================================================
--- Makefile	(.../www/gatling)	(revision 377)
+++ Makefile	(.../local/gatling)	(revision 377)
@@ -7,7 +7,7 @@
 
 PORTNAME=	gatling
 PORTVERSION=	0.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www benchmarks ftp ipv6
 MASTER_SITES=	http://dl.fefe.de/
 

	


>Release-Note:
>Audit-Trail:
>Unformatted:



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