Skip to content

Fixed for heap overflow issue…#1

Open
GoannaGuy wants to merge 1 commit into
bastienlecorre:masterfrom
nanonation:master
Open

Fixed for heap overflow issue…#1
GoannaGuy wants to merge 1 commit into
bastienlecorre:masterfrom
nanonation:master

Conversation

@GoannaGuy
Copy link
Copy Markdown

I've fixed some potential heap overflow issues in both 'Socket.recvData' and 'Socket.readData'.

Specifically, if either call was forced to loop their reads, they continued to ask for the full size of the buffer each iteration of the loop, even though there is only part of the buffer left available. When that happened, if more data happened to be available than could fit into the remaining buffer, it would cause a heap overflow... data from the socket would be lost (causing unexpected behaviors with subsequent reads) and it would potentially cause the app to eventually crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant