zf8848 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

pcp crash with "invalid allocation size..." (even on non-64 bit machine) #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
it is caused by no "content-length" in the HTTP response header

Connection: close
Content-Type: text/plain
Date: Mon, 24 Nov 2008 06:44:22 GMT
Server: MediaProxy
Cache-Control: private, x-gzip-ok=""

relay.ip=209.85.201.126
...............

walk-around:
in httpbase.ccc, HttpParser::process_line() function:

state_ = chunked_ ? ST_CHUNKSIZE : ST_DATA;
err = onHttpRecvHeaderComplete(chunked_, data_size_); 

add a new line of code:

state_ = chunked_ ? ST_CHUNKSIZE : ST_DATA;
if (data_size_ == SIZE_UNKNOWN) data_size_ = 1024;//just assign a size
err = onHttpRecvHeaderComplete(chunked_, data_size_); 

Original issue reported on code.google.com by mr.chob...@gmail.com on 24 Nov 2008 at 2:22

GoogleCodeExporter commented 9 years ago
complete solution for this problem.

Original comment by mr.chob...@gmail.com on 6 Feb 2009 at 6:32

Attachments: