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

Index out of bounds error #70

Open
bendrissou opened this issue Oct 12, 2024 · 0 comments
Open

Index out of bounds error #70

bendrissou opened this issue Oct 12, 2024 · 0 comments

Comments

@bendrissou
Copy link

Hi,

Increasing the bitmap size in configuration file config.ron leads to a crash:

[2024-10-12] 16:53:37 Starting Fuzzing...
thread 'fuzzer_1' panicked at fuzzer/src/fuzzer.rs:344:17:
index out of bounds: the len is 65536 but the index is 65536
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at fuzzer/src/main.rs:489:44:
RAND_2698731594: Any { .. }

After some debugging it turns out that the value 65536 is hardcoded within Nautilus:

return (shm_id, trace_bits as *mut [u8; 1 << 16]);

The array size is fixed here, and is not set by configurations. The mismatch between the hardcoded value 1 << 16 and the expected value from config.ron leads to the error.

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