We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/mattconte/tlsf/blob/master/tlsf.c#L1100 bytes - tlsf_size() where bytes < tlsf_size() yields a junk result in the tlsf_add_pool function.
bytes - tlsf_size()
tlsf_add_pool
Given a value of 40 bytes this leads to segfaults. Given a value of 4096 bytes this leads to https://github.com/mattconte/tlsf/blob/master/tlsf.c#L997 reporting that the buffer is too large. (this reproduced on aarch64).
I'd add a check that bytes is > tlsf_size() and document that the buffer provided must be greater than this value.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/mattconte/tlsf/blob/master/tlsf.c#L1100
bytes - tlsf_size()
where bytes < tlsf_size() yields a junk result in thetlsf_add_pool
function.Given a value of 40 bytes this leads to segfaults. Given a value of 4096 bytes this leads to https://github.com/mattconte/tlsf/blob/master/tlsf.c#L997 reporting that the buffer is too large. (this reproduced on aarch64).
I'd add a check that bytes is > tlsf_size() and document that the buffer provided must be greater than this value.
The text was updated successfully, but these errors were encountered: