mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 01:42:49 +08:00
908814a575
Implement the bzero function as an alternative to macro expansion. and support gcc FORTIFY_SOURCE features for nuttx libc This function will use gcc's function __builtin_dynamic_object_size and __builtin_object_size Its function is to obtain the size of the object through compilation, so as to judge whether there are out-of-bounds operations in commonly used functions. It should be noted that the option -O2 and above is required to enable this function Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>