Check CPU model for uc_ctl

This commit is contained in:
2022-04-16 17:49:47 +02:00
parent a60db86144
commit b136f08f2d
13 changed files with 426 additions and 331 deletions

View File

@@ -331,7 +331,7 @@ ARMCPU *cpu_aarch64_init(struct uc_struct *uc)
}
if (uc->cpu_model == INT_MAX) {
uc->cpu_model = UC_CPU_AARCH64_A72;
uc->cpu_model = UC_CPU_ARM64_A72;
} else if (uc->cpu_model >= sizeof(aarch64_cpus)) {
free(cpu);
return NULL;