-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory reference error and Integer Overflow #39
Comments
Thanks for your report. We'll investigate the issues in more depth in a couple of days (currently focusing on a different part of SLikeNet). If the issues you reported is something you'd need dealt with right away, pls let me know and I'll try to shift priorities. Furthermore, if it's fine with you, could you sign/agree with the CLA so we are legal wise on the safe side to use your report/contributions in SLikeNet (see https://github.com/SLikeSoft/SLikeNet/blob/master/.github/CONTRIBUTING.md ). Doing a quick initial review of your reports: @issue 2: |
issue 1: The process of error is as follows. line 334 : insert issue 2: windows x64 ex: struct PT_FILE_TRANSFER while(1) It occurs randomly at high speed transmission without congestion. To catch an error, you have to test it repeatedly many times. "I hereby declare I've read and agree to the current CLA as provided under https://github.com/SLikeSoft/SLikeNet/blob/master/.github/CONTRIBUTING.md" |
@issue 1: I still can't follow that from a pure code review point of view. line 337: otherUser->DeleteConnectionAttempt(connectionAttempt); line 345 / 584: connectionAttempt=user->connectionAttempts[i]; Note that the otherUser will be deallocated upon the corresponding call to OnClosedConnection() for that "other" user eventually. @issue 2: Thanks for the repro. Looking through our test cases I see we are not yet covering this exact scenario. Let me get back to you on that one. (Assigned internal case number: SLNET-234). Also thanks for acknowledging the CLA. I added you to our record. |
Sorry, The deallocation is line 340, not line 337. If the users[i] is deleted, the otherUser added at line 334 is also deleted. |
…low when 2GB data is transfered continuously. Issue SLikeSoft#39
This error occurs when disconnecting while attempting a hole punch inside the local PC.
It refers to the unallocated 'otherUser'
The solution was as follows.
NatPunchthroughServer.cpp
2.Integer Overflow
This error occurs when approximately 2 GB of large data is transferred continuously.
I replaced it with 64-bit type as follows.
CCRakNetSlidingWindow.h
CCRakNetSlidingWindow.cpp
ReliabilityLayer.h
580 line
ReliabilityLayer.cpp
1959 line
This is a temporary solution and not a fundamental solution. I wish someone could fix it better.
The text was updated successfully, but these errors were encountered: