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

possible segmentation fault #54

Closed
charlesxsh opened this issue Jun 23, 2022 · 1 comment
Closed

possible segmentation fault #54

charlesxsh opened this issue Jun 23, 2022 · 1 comment

Comments

@charlesxsh
Copy link

Hi there, due to public new function available for type, there is an potential segmentation fault chance without any unsafe involved.

fn main() {
    let a = pkcs11::types::CK_ATTRIBUTE::new(123);
    a.get_bool(); // get_bool can also be replaced with any member functions contains dereference operation without check pointer is null 
}
cargo run
Segmentation fault
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