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

Detect #[link] directive on extern blocks #179

Open
kornelski opened this issue Jan 20, 2021 · 1 comment
Open

Detect #[link] directive on extern blocks #179

kornelski opened this issue Jan 20, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kornelski
Copy link

Similar to #104, it's possible to pull in arbitrary code and replace arbitrary symbols by using the #[link] directive.

#[link(name="evilpayload", kind="static")]
extern {}
@anderejd
Copy link
Contributor

Thanks for reporting!

@anderejd anderejd added enhancement New feature or request help wanted Extra attention is needed labels Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants