fix: fix load aarch64 aot failed (#4114)

Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
This commit is contained in:
jia xiang
2025-03-04 16:45:47 +08:00
committed by GitHub
parent e693608476
commit 73998e4c85
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ get_current_target(char *target_buf, uint32 target_buf_size)
/* Set to "aarch64v8" by default if sub version isn't specified */
if (strcmp(s, "AARCH64") == 0) {
s = "aarch64v8";
s_size = 9; /* strlen("aarch64v8"); */
s_size = 10; /* sizeof("aarch64v8"); */
}
if (target_buf_size < s_size) {
s_size = target_buf_size;