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

malloc_usable_size must return 0 for NULL #75

Closed
Hello71 opened this issue Jun 18, 2022 · 1 comment
Closed

malloc_usable_size must return 0 for NULL #75

Hello71 opened this issue Jun 18, 2022 · 1 comment

Comments

@Hello71
Copy link

Hello71 commented Jun 18, 2022

the Linux man page says:

If ptr is NULL, 0 is returned. [...] This function is a GNU extension.

since this is a glibc extension, bytehound should conform to the glibc specification, as other Linux replacement allocators, such as tcmalloc, jemalloc, mimalloc, and musl already do.

@koute
Copy link
Owner

koute commented Jun 24, 2022

Thanks for the report. Fixed on master.

@koute koute closed this as completed Jun 24, 2022
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

No branches or pull requests

2 participants