[haiku-bugs] Re: [Haiku] #10242: WebPositive crash in network backend (corrupted memory)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Sun, 24 Nov 2013 21:03:36 -0000

#10242: WebPositive crash in network backend (corrupted memory)
   Reporter:  stippi                    |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All

Comment (by pulkomandy):

 Each of the BUrlProtocol.HTTP thread is bound to a BHttpRequest object and
 using the matching fOutputBuffer, so I don't think they are accessing the
 same string concurrently.

 The intended use is: the output buffer is filled with the headers and
 request content, then the thread is started and reads from that string to
 send things over the network.

 I will add some checks to make sure the string isn't modified again after
 the thread is started. Maybe a BMallocIO would be a better choice than a
 BString, as well.

Ticket URL: <http://dev.haiku-os.org/ticket/10242#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: