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

方法名的匹配逻辑有问题。 #46

Closed
AlexLearnsToCode opened this issue Jul 12, 2018 · 2 comments
Closed

方法名的匹配逻辑有问题。 #46

AlexLearnsToCode opened this issue Jul 12, 2018 · 2 comments

Comments

@AlexLearnsToCode
Copy link

例如在同一个jsBridge中实现了 request和requestWithData,如果前端调用了request,但是requestWithData的定义比requst早,则实际调用的方法是requestWithData,因为源码中方法匹配的逻辑是根据方法前缀以及参数个数来匹配的,有漏洞。建议根据方法的signature来匹配。
方法匹配逻辑在JSBUtil.m文件 方法methodByNameArg:selName:class: 中。

@wendux
Copy link
Owner

wendux commented Jul 12, 2018

#44

@wendux
Copy link
Owner

wendux commented Sep 6, 2018

已修复,请升级到>=3.0.3

@wendux wendux closed this as completed Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants