Skip to content

CDVD: Check file actually opened before proceeding#5182

Merged
refractionpcsx2 merged 1 commit intoPCSX2:masterfrom
stenzek:cdvd-check-open
Dec 18, 2021
Merged

CDVD: Check file actually opened before proceeding#5182
refractionpcsx2 merged 1 commit intoPCSX2:masterfrom
stenzek:cdvd-check-open

Conversation

@stenzek
Copy link
Contributor

@stenzek stenzek commented Dec 18, 2021

If you loaded an invalid file, particularly with compression, the file open may fail, leading to a division by zero (on block size), or trying to read from nothing.

If you loaded an invalid file, particularly with compression, the file
open may fail, leading to a division by zero (on block size), or trying
to read from nothing.
@github-actions github-actions bot added the CDVD label Dec 18, 2021
@ghost
Copy link

ghost commented Dec 18, 2021

I guess I will write that here, but that PR doesn't seem to fix a very very weird problem I have with Wipeout 2097 where PCSX2 think it's a corrupted iso (it can't find the game executable file) despite comming straight from the game disc, and that same disc works fine in duckstation.

@stenzek
Copy link
Contributor Author

stenzek commented Dec 18, 2021

It's not going to. This just stops it crashing on corrupted files (at least in one place)

@refractionpcsx2 refractionpcsx2 merged commit fac171f into PCSX2:master Dec 18, 2021
@stenzek stenzek deleted the cdvd-check-open branch June 22, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants