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:
Huang Qi 2022-08-30 08:23:13 +00:00 committed by Xiang Xiao
parent 7e316d0ba9
commit 28872ca3ed

View File

@ -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;
/****************************************************************************