libc/fdsan: add fdsan protection for all file pointers
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
97d2d6376d
commit
d70d406161
|
@ -81,6 +81,12 @@ FAR FILE *fdopen(int fd, FAR const char *mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_FDSAN
|
||||||
|
android_fdsan_exchange_owner_tag(fd, 0,
|
||||||
|
android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_FILE,
|
||||||
|
(uintptr_t)filep));
|
||||||
|
#endif
|
||||||
|
|
||||||
return filep;
|
return filep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue