buglwIP - A Lightweight TCP/IP stack - Bugs: bug #37151, HTTP header corrupted in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37151: HTTP header corrupted in http_post_request

Submitter:  Andrew Lynn <alynn>
Submitted:  Mon 20 Aug 2012 01:29:00 PM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  1.4.0

Thu 23 Aug 2012 06:05:35 AM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 20 Aug 2012 01:29:00 PM UTC, original submission:  

Whilst attempting to access browser cookies I found the HTTP header was being truncated and the cookie field was not visible.

http_post_request() adds a null terminator when reading the content length. I do not think there is no need to do this as atoi() will stop at the first non digit. The CRLF at the end of the Content-length: line will do this just as well as the added terminator.

Andrew Lynn <alynn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by alynn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-08-23 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code