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: ignore zero or empty CRC and check file size #537

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

igorcafe
Copy link
Contributor

@igorcafe igorcafe commented Mar 12, 2024

An empty file was matching ~11k games because the games didn't have a CRC attribute, so the zero value, 0, was being matched by an empty file CRC, which is also 0.

For example: I have only one PSX game, but a random file called "SUPER MARIO KART 8.smc" with 0 KB was being scanned and matched by 9K games with unknown CRC, plus other 2k games from N64 and other consoles.

image

@kivutar kivutar merged commit 2140a68 into libretro:master Mar 12, 2024
6 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