View Single Post
Author Message
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-17-2016 , 12:55   socket_recv() crash when stressing
Reply With Quote #1

You can ignore this, but I'll leave it for the sake of "new x[]" vs. "malloc()" for Arkshine to consider. However I realize that it might not have crashed if I hand't sent it a negative number...
The problem was that when using chunked transfers it passed the next size marker and I tried to allocate -166B. I feel like a moron now.
Spoiler
Attached Files
File Type: inc httpx.inc (7.8 KB, 37 views)
File Type: sma Get Plugin or Get Source (httpx.sma - 378 views - 41.3 KB)
File Type: sma Get Plugin or Get Source (test5.sma - 364 views - 797 Bytes)
__________________

Last edited by Black Rose; 05-17-2016 at 15:58.
Black Rose is offline