use const for malloc_object_size API

This commit is contained in:
Daniel Micay 2022-01-04 10:14:41 -05:00
parent aa1746a90d
commit d1c39edc9b
2 changed files with 4 additions and 4 deletions

View file

@ -104,10 +104,10 @@ void h_malloc_enable(void);
// hardened_malloc extensions
// return an upper bound on object size for any pointer based on malloc metadata
size_t h_malloc_object_size(void *ptr);
size_t h_malloc_object_size(const void *ptr);
// similar to malloc_object_size, but avoiding locking so the results are much more limited
size_t h_malloc_object_size_fast(void *ptr);
size_t h_malloc_object_size_fast(const void *ptr);
// The free function with an extra parameter for passing the size requested at
// allocation time.