Skip to content
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

fix: Fix issue with reused send buffer #680

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

freehuntx
Copy link

@freehuntx freehuntx commented Nov 29, 2024

Sometimes games or websites reuse the buffer they send.
Especially game engines use this for performance reasons. This causes our mock to get already overwritten
bytes which were not sent like this.

To fix this we should make a copy of the buffer as soon as possible.

Ps: Im not deep in this library, if there is an even earlier place to do the copy, we should move this.

@freehuntx freehuntx force-pushed the fix-reused-send-buffer branch from 395e723 to f4ae351 Compare November 29, 2024 23:49
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