Skip to content

Stack protection on ccalls #1666

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

Closed
vtjnash opened this issue Dec 3, 2012 · 3 comments
Closed

Stack protection on ccalls #1666

vtjnash opened this issue Dec 3, 2012 · 3 comments

Comments

@vtjnash
Copy link
Member

vtjnash commented Dec 3, 2012

Adding the function attribute sspreq to any function that uses ccall might help with more quickly identifying stack corruption coming from external libraries.

@JeffBezanson
Copy link
Member

We could just add this with an ifdef, and later (or immediately) as a command line switch. Feel free to add it in any way that's off by default.

@vtjnash
Copy link
Member Author

vtjnash commented Dec 3, 2012

I would, but I don't know how to find the *Function for the function currently being JIT'd from within emit_ccall.

@JeffBezanson
Copy link
Member

ctx->f

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