Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当使用OCRunnerArm64时,NSLog()可变参数,如果传入的值为int类型,必崩 #22

Open
windfanstry opened this issue Jun 16, 2022 · 3 comments
Assignees

Comments

@windfanstry
Copy link

OCRunnerArm64 Version: 1.2.0

description:
执行下列代码:
int i1 = 1; int i2 = 2; NSLog(@"%d,%d,%@",i1,i2,@"1234");
会触发崩溃,疑似转为long型,即可成功,是否与内存分配不足有关?
example: xxxxx
image

@SilverFruity
Copy link
Owner

OCRunnerArm64 已经很久没维护过了,不建议使用它

@windfanstry
Copy link
Author

该问题,在OCRunnerArm64中,会崩溃
原因是 NSAA计算时,没有按照规则规则,对齐最小8,导致的。(NSAA最小应该是8,int会导致NSAA是4)

@SilverFruity
Copy link
Owner

该问题,在OCRunnerArm64中,会崩溃 原因是 NSAA计算时,没有按照规则规则,对齐最小8,导致的。(NSAA最小应该是8,int会导致NSAA是4)

相关修改欢迎提交 PR 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants