Bug 11099 - HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
Summary: HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 420+
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2006-09-30 10:19 PDT by Darin Fisher (:fishd, Google)
Modified: 2006-10-03 18:14 PDT (History)
0 users

See Also:

minimal patch (1.54 KB, patch)
2006-10-02 18:51 PDT, Darin Fisher (:fishd, Google)
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Fisher (:fishd, Google) 2006-09-30 10:19:07 PDT
I've noticed that HttpSendRequestEx sometimes returns ERROR_HTTP_HEADER_NOT_FOUND, which I believe is caused by the lpcszHeader member of the INTERNET_BUFFERS struct being a garbage pointer.  Note: the CString object returned by headers.latin1() is a temporary, and ResourceLoaderWin is making the mistake of using it beyond its lifetime.

Patch coming up...
Comment 1 Darin Fisher (:fishd, Google) 2006-10-02 18:51:56 PDT
Created attachment 10875 [details]
minimal patch
Comment 2 Darin Adler 2006-10-02 19:36:05 PDT
Comment on attachment 10875 [details]
minimal patch

Comment 3 Mark Rowe (bdash) 2006-10-03 18:14:11 PDT
Landed in r16757.