GNU bug report logs - #14372
24.3; url package http end of headers false positive

Previous Next

Package: emacs;

Reported by: Ben Anhalt <ben.anhalt <at> gmail.com>

Date: Wed, 8 May 2013 23:05:01 UTC

Severity: normal

Merged with 13598

Found in versions 24.3, 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 14372 <at> debbugs.gnu.org (full text, mbox):

From: Ben Anhalt <ben.anhalt <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 14372 <at> debbugs.gnu.org
Subject: Re: bug#14372: 24.3; url package http end of headers false positive
Date: Wed, 8 May 2013 18:13:21 -0500
[Message part 1 (text/plain, inline)]
Yes, it is the same bug. I did not see that one when searching. Thank you
for the reply.

Ben


On Wed, May 8, 2013 at 6:08 PM, Glenn Morris <rgm <at> gnu.org> wrote:

> Ben Anhalt wrote:
>
> > In url-http.el in url-http-wait-for-headers-change-function the regular
> > expression for detecting the end of HTTP headers is "^\r*$" which can
> > result in false positives if a partial response (with more headers to
> > come) is received that ends in a newline. That is, "HTTP/1.1 200
> > OK\r\nSome-header: foo\r\n" matches at the end as an empty line even
> > though there is no way to tell if more headers will arrive.
> >
> > It needs to detect a line that contains nothing but "\r", so a RE like
> > "^\r+$" or simply "^\r$" would be more appropriate.
>
> Thanks for the report. I believe this is already fixed in Emacs trunk:
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13598
>
> > In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
> >  of 2013-04-14 on chindi10, modified by Debian
>



-- 
Ben Anhalt
ben.anhalt <at> gmail.com
Mi parolas Esperante.
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.