diff options
author | 2023-01-07 15:02:07 -0500 | |
---|---|---|
committer | 2023-01-07 15:02:07 -0500 | |
commit | e5cf5f93fa72222a6decd709b93123776687fbc7 (patch) | |
tree | dafb6a61ea674b29759dba3b6267cc58fc1b0d5a /src/lib/formats/fs_coco_os9.cpp | |
parent | a2b0809ab30d130159422234bbea24aac37ce124 (diff) |
Fixed a bug in the OS-9 file systems file name validation function that caused it to incorrectly tolerate characters with the seventh bit set (#10802)
Diffstat (limited to 'src/lib/formats/fs_coco_os9.cpp')
-rw-r--r-- | src/lib/formats/fs_coco_os9.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/fs_coco_os9.cpp b/src/lib/formats/fs_coco_os9.cpp index f72ae772f8f..f94ff290799 100644 --- a/src/lib/formats/fs_coco_os9.cpp +++ b/src/lib/formats/fs_coco_os9.cpp @@ -651,7 +651,7 @@ bool coco_os9_impl::validate_filename(std::string_view name) { return !is_ignored_filename(name) && name.size() <= 29 - && std::find_if(name.begin(), name.end(), [](const char ch) { return ch == '\0' || ch == '/' || ch >= 0x80; }) == name.end(); + && std::find_if(name.begin(), name.end(), [](const char ch) { return ch == '\0' || ch == '/' || (ch & 0x80); }) == name.end(); } |