Closed stevetao74 closed 1 year ago
As following, parsing sym to cname into crash, Length of cname set to 256 can handle this.
char _cname[MAX_SYM_LENGTH]; if (fscanf(f, "%llx %s %s [ %[^]] ]", &cpc, cname) < 0)
uname -a: Linux pc1 6.2.0-23-generic #23-Ubuntu SMP PREEMPT_DYNAMIC Wed May 17 16:55:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
As following, parsing sym to cname into crash, Length of cname set to 256 can handle this.
char _cname[MAX_SYM_LENGTH]; if (fscanf(f, "%llx %s %s [ %[^]] ]", &cpc, cname) < 0)
uname -a: Linux pc1 6.2.0-23-generic #23-Ubuntu SMP PREEMPT_DYNAMIC Wed May 17 16:55:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux