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

Fix potential buffer overflow and memory leak #302

Merged

Conversation

visitorckw
Copy link
Collaborator

This patch addresses a potential security vulnerability in the SDL-oriented system calls. The current implementation lacks proper error handling for malloc and realloc, which can lead to buffer overflows and memory leaks in case of allocation failures.

This patch addresses a potential security vulnerability in the
SDL-oriented system calls. The current implementation lacks proper
error handling for malloc and realloc, which can lead to buffer
overflows and memory leaks in case of allocation failures.
@jserv jserv requested a review from ChinYikMing December 22, 2023 08:52
@jserv jserv merged commit 3aab28b into sysprog21:master Dec 22, 2023
@visitorckw visitorckw deleted the fix-buffer-overflow-and-memory-leak branch December 22, 2023 15:46
vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
…and-memory-leak

Fix potential buffer overflow and memory leak
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.

3 participants