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

部分可变类型的类别容易导致数据被截断 #16

Open
andy6shen opened this issue Jul 11, 2018 · 2 comments
Open

部分可变类型的类别容易导致数据被截断 #16

andy6shen opened this issue Jul 11, 2018 · 2 comments

Comments

@andy6shen
Copy link

andy6shen commented Jul 11, 2018

例如NSMutableData类别中[hookReplaceBytesInRange:withBytes:],如果有需要替换长度超过原数据长度的情况下,超过长度的数据就被截断,这样的做法容易产生意想不到的后果,希望能再被优化,不是简单地截断后面的数据,其实不截断处理也不会崩溃,不是吗?请尽快想办法优化,已经有开发者遇到此问题了 @jasenhuang @hypoyao @tedzhou

@jasenhuang
Copy link
Owner

@andy6shen yeah,you're right. fix already

@andy6shen
Copy link
Author

OK,Thank you.

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