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

Fix GM 8.1 bug with get_function_address() segfault on scripts and extension functions #5

Open
cher-nov opened this issue Feb 20, 2023 · 0 comments

Comments

@cher-nov
Copy link

cher-nov commented Feb 20, 2023

If you call get_function_address() with the name of a function from a dynamic library included by a GEX extension or a script (including ones from extensions), then at best, 0 or a garbage value may be returned, and at worst, an Access Violation error may occur.

The preferred fix for the get_function_address() is to simply return -1 in these cases, as it does for non-existent names.

@cher-nov cher-nov changed the title Fix GM 8.1 bug with get_function_address() segfault on DLL functions from GEX extensions Fix GM 8.1 bug with get_function_address() segfault on scripts and extension functions Feb 20, 2023
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

1 participant