Tcl Source Code

View Ticket
Login
Ticket UUID: 2900683
Title: bug in http::geturl
Type: Bug Version: None
Submitter: kraney Created on: 2009-11-19 19:54:24
Subsystem: 29. http Package Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-11-20 05:28:01
Resolution: Out of Date Closed By: dgp
    Closed on: 2009-11-19 22:28:01
Description:
In http 2.7.2, there is a bug that can cause a web page to report failure when in fact it has succeeded.

In http::Event, the code that reads the HTTP response (such as "HTTP/1.1 200 OK") fails to check the returned size of that read. If there is data available on that socket, but the data doesn't represent a complete line, the call to "gets" will return -1 (which is ignored) and the HTTP response code is stored as the empty string. This causes logic errors in later code, with the end result that the entire page contents gets treated as HTTP header information.
User Comments: dgp added on 2009-11-20 05:28:01:

allow_comments - 1

kraney added on 2009-11-20 03:07:08:
No, it isn't. Sorry about that.

andreas_kupries added on 2009-11-20 02:59:18:
Is this bug still present in http 2.7.5 ?

kraney added on 2009-11-20 02:55:07:

File Added - 351715: http.diff

Attachments: