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

FFI function cleanup_openal_context() has a memory issue without pre-checking #25

Open
cicilzx opened this issue Oct 6, 2024 · 0 comments

Comments

@cicilzx
Copy link

cicilzx commented Oct 6, 2024

Hi, I'm developing a fuzzer to test the safe abstraction, and I fonnd a segmentation fault when calling function ears/src/internal.rs/cleanup_openal_context().

The test case is as follows:

#[allow(warnings, unused)]
#[test]
fn test_cleanup_openal_context_s7Huz() {
    let _ = cleanup_openal_context();
}

Calling the cleanup_openal_context() function directly without any pre-checks results in a memory error, which is reported as follows:

Caused by:
  process didn't exit successfully: `/home/cici/ears/target/debug/deps/ears-3aa3cfab0315f845 'internal::test_cleanup_openal_context_s7Huz' --exact --show-output` (signal: 11, SIGSEGV: invalid memory reference)
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