clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -838,11 +838,11 @@ static KSTATUS Ext4ReadDir(IO_VOLUME_PROVIDER* provider, void* dirCtx, KDIR_ENTR
|
||||
}
|
||||
|
||||
memset(out, 0, sizeof(*out));
|
||||
size_t nameLength = entry->name_length;
|
||||
if (nameLength >= SYS_DIR_NAME_MAX)
|
||||
nameLength = SYS_DIR_NAME_MAX - 1;
|
||||
memcpy(out->Name, entry->name, nameLength);
|
||||
out->Name[nameLength] = '\0';
|
||||
// ext4 allows arbitrary non-NUL filename bytes. Project malformed UTF-8
|
||||
// to U+FFFD only for enumeration; keep raw bytes for ext4 metadata lookups.
|
||||
// The displayed name is not a reversible path for malformed disk names.
|
||||
(void)SysSvCopyUtf8WithReplacement(
|
||||
SysSvFromParts(entry->name, entry->name_length), out->Name, sizeof(out->Name));
|
||||
out->Attr = entry->inode_type == EXT4_DE_DIR
|
||||
? SYS_FILE_ATTR_DIRECTORY
|
||||
: SYS_FILE_ATTR_ARCHIVE;
|
||||
|
||||
Reference in new issue
Block a user