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 logic error hashing small files from CD filesystem #314

Merged

Conversation

Jamiras
Copy link
Member

@Jamiras Jamiras commented Jan 17, 2024

https://discord.com/channels/310192285306454017/645777658319208448/1197203036334985297

When reading a file smaller than 2048 bytes, the entire sector containing the file was being hashed. This was unintentional.

However, fixing this issue will cause most of the PSP hashes to change. As such, we will need to support both old and new hashes for the ~1000 PSP hashes already in the system.

This function is also used for NeoGeoCD, Dreamcast, PSX, and PS2 hashes, but the likelihood of those having files smaller than 2048 bytes is basically non-existant.

@Jamiras Jamiras added this to the 11.1.0 milestone Jan 21, 2024
@Jamiras Jamiras merged commit 1795202 into RetroAchievements:develop Jan 21, 2024
6 checks passed
@Jamiras Jamiras deleted the bugfix/hash_small_cd_file branch January 21, 2024 15:26
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.

1 participant