fix(keyboard): guard read output buffers #17948
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17948"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-10T00:38:43Z.
What
Guard the guest output buffers in
sceKeyboardReadandsceKeyboardReadState.sceKeyboardReadstages queued snapshots and advances its history only after the checked write succeeds, so an invalid destination does not discard unread input. Inaccessible non-null output uses the existing null-output error. Exact console error and partial-span behavior remain unverified in keyboard technical debt.Tested
Merged upstream main
00cb2314f490fea6e113bf9a2773867a60ee4771; exact validated head0f70520ac3167564f807396f5be5d995b65f0556, tree87115fadaa2f93604a140013462cfe676aae8e59.errnois preserved. The existing keyboard test also covers protected output, retained unread history, and successful retry. The keyboard debt entry is retained.BUILD_TESTING=ON, eight compiler jobs. The completelibsruntime target and the named focused test executables built on this exact tree. Third-party submodule pins are unchanged from the build cache.public_headers,keyboard_input, andkeyboard_dbg_aliaseach passed three consecutive CTest runs: 9/9 executions across 3 test names, zero skips, 56.76 seconds combined CTest wall time. Usedctest --no-tests=error --output-on-failure --repeat until-fail:3with the exact-name filter.git diff --checkandtools/check_conventions.pyagainst the pinned main and this PR's title/body pass. A merge preview against later mainab6ef0b5629d5f0412217dcceea6deac7b8b0b01passed before push.Checklist
main; no other open PR implements these output guards