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

called_as_trigger is unsound #220

Closed
dtolnay opened this issue Sep 24, 2021 · 0 comments
Closed

called_as_trigger is unsound #220

dtolnay opened this issue Sep 24, 2021 · 0 comments
Assignees

Comments

@dtolnay
Copy link

dtolnay commented Sep 24, 2021

This function exposes UB to safe code. In general it is unsound for a safe API to result in UB.

fn main() {
    pgx::trigger_support::called_as_trigger(0xdeadbeefusize as _);
}
Segmentation fault (core dumped)
@Hoverbear Hoverbear self-assigned this Sep 24, 2021
@Hoverbear Hoverbear added this to the 0.2.0 milestone Sep 24, 2021
@Hoverbear Hoverbear removed this from the 0.2.0-beta.0 milestone Sep 24, 2021
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