Skip to content

fix crash caused by passing non ansi path to std::filesystem functions#26

Merged
minggo merged 7 commits intococos:masterfrom
minggo:fix-crash
Feb 21, 2025
Merged

fix crash caused by passing non ansi path to std::filesystem functions#26
minggo merged 7 commits intococos:masterfrom
minggo:fix-crash

Conversation

@minggo
Copy link

@minggo minggo commented Feb 19, 2025

Some of std::filsystem functions need to accept an error code, or it will throw an exception if having some error. For example, if passing a non utf-8 string to std::filesystem::exists(path) and not use error code, then it will throw an exception.

@minggo minggo merged commit 8901622 into cocos:master Feb 21, 2025
2 checks passed
@minggo minggo deleted the fix-crash branch February 21, 2025 07:38
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