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

cast size_t to int32_t for vector::size #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ate47
Copy link

@ate47 ate47 commented Oct 10, 2023

Hello,

In the C++ libdebug code, the write methods are using size_t vector::size(), but the size of size_t isn't 4 bytes by default. In my version sizeof(size_t) = 8, so it was creating a buffer overflow.

This PR fixes it for the LoadElf/KernelWriteMemory/WriteMemory methods, but maybe it's used somewhere else.

Thanks for the lib itself.

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