mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
libc: Fix wrong report from UBSan
``` ubsan_prologue: ================================================================================ ubsan_prologue: UBSAN: array-index-out-of-bounds in symtab/symtab_allsyms.c:62:37 __ubsan_handle_out_of_bounds: index 1619 is out of range for type 'symtab_s [1]' ubsan_epilogue: ================================================================================ ``` Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
extern const struct symtab_s g_allsyms[1];
|
||||
extern const struct symtab_s g_allsyms[];
|
||||
extern const int g_nallsyms;
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user