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

(cheevos) prevent write-past-end-of-buffer when signed value wraps #15868

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

Jamiras
Copy link
Contributor

@Jamiras Jamiras commented Nov 4, 2023

Description

Fixes a crash when loading some games with large strings (reported against Legend of Legaia). Introduced in #15859.

Subtraction of two unsigned values resulted in a very large unsigned value, so the greater than comparison succeeded when it shouldn't have.

Related Issues

Discord

Related Pull Requests

n/a

Reviewers

@Sanaki

@LibretroAdmin LibretroAdmin merged commit b43e1f3 into libretro:master Nov 5, 2023
22 checks passed
@Jamiras Jamiras deleted the fix_large_string_crash branch November 7, 2023 22:37
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
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