Raised This Month: $ Target: $400

socket_recv() crash when stressing

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Upplands Väsby, 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.
Attached Files
File Type: inc httpx.inc (7.8 KB, 28 views)
File Type: sma Get Plugin or Get Source (httpx.sma - 356 views - 41.3 KB)
File Type: sma Get Plugin or Get Source (test5.sma - 342 views - 797 Bytes)

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 23:02.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode