Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Dicot0721
Copy link
Contributor

@Dicot0721 Dicot0721 commented Sep 21, 2025

  • When iconPath is empty string, vfs::read_file will try to open dictory ux0 as a binary file to read, which have no effect on Windows but crash on *nix (Linux/Android/...).
  • std::ifstream can open a directory as file on *nix (but can not on Windows), and after that std::ifstream::tellg() return the max value that the return type can represent (strangely not fail), which leads to throwing an exception when buffer is being resized.

@github-actions github-actions bot added modules Related to modules management hle labels Sep 21, 2025
@Zangetsu38
Copy link
Contributor

is on what game ?

EXtremeExploit
EXtremeExploit previously approved these changes Sep 21, 2025
@Dicot0721
Copy link
Contributor Author

is on what game ?

Known:

  • Sly Cooper: Thieves in Time™ [PCSA00068]
  • 仮面ライダー バトライド・ウォー 創生 [PCSG00675]

@Zangetsu38
Copy link
Contributor

Zangetsu38 commented Oct 1, 2025

is on what game ?

Known:

* Sly Cooper: Thieves in Time™ [PCSA00068]

* 仮面ライダー バトライド・ウォー 創生 [PCSG00675]

i see yes, sly cooper for empty save get len 0 but not null hmm
but sad, change it no fix empty icon, i need look here is strange
that is not normal
image

ah click on no crashing ok lol
ah yes, it try clear empty vector hmm

@Dicot0721 Dicot0721 changed the title modules/SceCommonDialog: Fix crash at 'check_save_file' modules/SceCommonDialog: Fix 'check_save_file' crash on Linux Oct 1, 2025
@Zangetsu38
Copy link
Contributor

i have founded one bug and issue for sly cooper, i open pr for fix it later

- When `iconPath` is empty string, `vfs::read_file` will try to open dictory `ux0` as a binary file to read, which have no effect on Windows but crash on *nix (Linux/Android/...).
- `std::ifstream` can open a directory as file on *nix (but can not on Windows), and after that `std::ifstream::tellg()` return the max value that the return type can represent (strangely not fail), which leads to throwing an exception when buffer is being resized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hle modules Related to modules management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants