From fd0a19658ec96189ccebfcd4ff9f03276e05e115 Mon Sep 17 00:00:00 2001 From: Adeeb Rahman Date: Tue, 24 Nov 2026 11:04:14 -0500 Subject: [PATCH] Document expanded CRT string and locale surface Keep interfaces and changelog aligned with the newly registered C-locale and string services. Signed-off-by: Adeeb Rahman --- CHANGELOG.md | 2 +- docs/interfaces.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c5b08f..a75ca5f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,7 +55,7 @@ remains unsupported. - Added guest drives backed by explicitly mounted host directories, read-only unless configured writable. Every operation resolves paths from the mount's root descriptor with `openat` and `O_NOFOLLOW`. Mount roots are opened with `O_NOFOLLOW`. Symbolic links, devices and multiply linked files are hidden. Each opened descriptor's type and identity are verified against the listing. Sharing and deletion checks compare live device and inode, and listings are bounded with explicit errors. Removal re-checks identity before unlink and prefers Linux `AT_EMPTY_PATH` on the verified descriptor. Regression tests cover traversal, links, host swaps between calls and between listing and open, renames, read-only enforcement and limits. The policy and its remaining limits are in `docs/interfaces.md`. Guest path confinement for this boundary was agent-reviewed (not a human security audit). -- Added C-locale CRT services (`setlocale`, `localeconv`), C-locale `ctype.h` predicates and case mapping, `strcpy`/`strncpy`/`strcat`/`strncat`/`memchr`, and a bounded `sprintf`/`snprintf` subset (`%%`, `%c`, `%s`, `%d`/`%i`, `%u`, `%x`/`%X`, `%p`, optional widths and `l`/`ll`/`z`/`t`). Non-C locales and unsupported conversions fail closed. See `docs/interfaces.md`. +- Added C-locale CRT services (`setlocale`, `localeconv`), C-locale `ctype.h` predicates and case mapping, byte and wide string mutators (`strcpy`/`strncpy`/`strcat`/`strncat`/`memchr`/`strstr`/`strspn`/`strcspn`, `wcscpy`/`wcsncpy`/`wcscat`/`wcschr`/`wcsrchr`), and a bounded `sprintf`/`snprintf` subset (`%%`, `%c`, `%s`, `%d`/`%i`, `%u`, `%x`/`%X`, `%p`, optional widths and `l`/`ll`/`z`/`t`). Non-C locales and unsupported conversions fail closed. See `docs/interfaces.md`. - Added an immediate-dispatch XAsync subset (`XAsyncRun`, `XAsyncGetStatus`, `XAsyncCancel`, `XAsyncGetResultSize`) on `xgameruntime.dll`. Work and completion run on the calling thread before `XAsyncRun` returns; waiting GetStatus is unsupported. Builds on the existing manual `XTaskQueue*` services. diff --git a/docs/interfaces.md b/docs/interfaces.md index 9975ddea..d36d0018 100644 --- a/docs/interfaces.md +++ b/docs/interfaces.md @@ -176,7 +176,8 @@ and [virtual release](https://learn.microsoft.com/windows/win32/api/memoryapi/nf ### CRT strings and byte memory The standard registry provides `strlen`, `strnlen`, `strcpy`, `strncpy`, -`strcat`, `strncat` and `memchr` under UCRT and the CRT +`strcat`, `strncat`, `memchr`, `strstr`, `strspn`, `strcspn`, and the wide +forms `wcscpy`, `wcsncpy`, `wcscat`, `wcschr` and `wcsrchr` under UCRT and the CRT string API set. They count bytes using checked guest memory. The scan stops at a null byte or the requested bound for `strnlen`. A scan that would continue past 1 MiB reports an unsupported-service fault. See the