[haiku-bugs] Re: [Haiku] #13625: Webpositive crashes on URL

  • From: "accessays" <trac@xxxxxxxxxxxx>
  • Date: Fri, 28 Jul 2017 12:04:51 -0000

#13625: Webpositive crashes on URL
----------------------------------------+----------------------------
   Reporter:  vidrep                    |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  Unscheduled
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  1                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by accessays):

 I've managed to narrow it down to two urls:
 1. https://ir-na.amazon-adsystem.com/e/ir?t=thedigitalt02-20&l=ur2&o=1
 2. https://ir-na.amazon-
 adsystem.com/e/ir?l=w41&t=thedigitalt02-202&o=1&cb=1501216857775
 Both are Amazon's ad system urls, probably used for tracking. Problem
 comes from the fact that the web server uses LF (\n) instead of CRLF(\r\n)
 to separate lines in headers, and that causes Web+ to crash (uint overflow
 and thus segment violation).

 Looking at the RFC https://tools.ietf.org/html/rfc7230#section-3.5

 {{{
 ...
 Although the line terminator for the start-line and header fields is
 the sequence CRLF, a recipient MAY recognize a single LF as a line
 terminator and ignore any preceding CR.
 ...
 }}}
 Which hints that such behavior may be considered normal. Firefox and
 Python Requests (Linux) load the page without errors, tho headers get
 messed up - instead of ''Connection'' header is called ''nnCoection''.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13625#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: