mte: add licensing info for code that was copied from scudo
parent
93aa9eefe4
commit
577d9583eb
|
@ -18,6 +18,9 @@ static inline void *arm_mte_create_random_tag(void *p, u64 exclusion_mask) {
|
||||||
//
|
//
|
||||||
// Contents of this function were copied from scudo:
|
// Contents of this function were copied from scudo:
|
||||||
// https://android.googlesource.com/platform/external/scudo/+/refs/tags/android-14.0.0_r1/standalone/memtag.h#167
|
// https://android.googlesource.com/platform/external/scudo/+/refs/tags/android-14.0.0_r1/standalone/memtag.h#167
|
||||||
|
//
|
||||||
|
// scudo is licensed under the Apache License v2.0 with LLVM Exceptions, which is compatible with
|
||||||
|
// the hardened_malloc's MIT license
|
||||||
static inline void arm_mte_store_tags_and_clear(void *tagged_ptr, size_t len) {
|
static inline void arm_mte_store_tags_and_clear(void *tagged_ptr, size_t len) {
|
||||||
uintptr_t Begin = (uintptr_t) tagged_ptr;
|
uintptr_t Begin = (uintptr_t) tagged_ptr;
|
||||||
uintptr_t End = Begin + len;
|
uintptr_t End = Begin + len;
|
||||||
|
|
Loading…
Reference in New Issue