mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-23 16:31:20 -04:00
perform size checks on various operations
Signed-off-by: Tavi <tavi@divested.dev> Co-authored-by: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
This commit is contained in:
parent
7481c8857f
commit
2f06cddeb7
46 changed files with 1166 additions and 13 deletions
6
random.h
6
random.h
|
@ -22,4 +22,10 @@ u16 get_random_u16_uniform(struct random_state *state, u16 bound);
|
|||
u64 get_random_u64(struct random_state *state);
|
||||
u64 get_random_u64_uniform(struct random_state *state, u64 bound);
|
||||
|
||||
#if CONFIG_BLOCK_OPS_CHECK_SIZE && !defined(HAS_ARM_MTE)
|
||||
#define h_memcpy_internal musl_memcpy
|
||||
#else
|
||||
#define h_memcpy_internal memcpy
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue