Skip to content

Fix invalid memory write #261

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

Merged
merged 1 commit into from
May 4, 2025
Merged

Conversation

Shubham7-1
Copy link
Contributor

There is no bounds check after fuzz_data_path() calls to ensure that the memory pointer (path_data, config_data) actually lies within the buffer and doesn't overflow.
This leads to:
Heap buffer overflow (write past allocated memory bounds)
Undefined behavior or even arbitrary memory writes

in this PR resolves a memory corruption issue in config_read_fuzzer by adding strict bounds checking, ensuring proper null termination, and avoiding out-of-bounds access in config and path data handling.

issue Link: https://issues.oss-fuzz.com/issues/391659746

@hyperrealm hyperrealm merged commit 0d882a8 into hyperrealm:master May 4, 2025
0 of 4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants