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

研究了下回调函数绑定部分,似乎是强转函数类型的,不会有安全性问题么? #3

Open
sagasarate opened this issue Aug 1, 2024 · 1 comment

Comments

@sagasarate
Copy link

研究了下回调函数绑定部分,pesapi部分的,似乎是强转函数类型的,
V8的回调函数类型是void (*)(const FunctionCallbackInfo& info)
pesapi接口用的类型是void (*pesapi_callback)(pesapi_callback_info info) pesapi_callback_info 是个指针类型
从参数为指针的函数类型强转为参数为引用的函数类型,调用的时候似乎是个未定义行为,不会有安全性问题么?

@chexiongsheng
Copy link
Contributor

不会

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