test(libkernel): exercise read-only getdirentries buffers before EOF #7892
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7892"
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 valenciana-nc on 2026-10-19T12:39:47Z.
What
Test-only follow-up to #7672, addressing @wachi35676's feedback. That PR merged at
950eeb847while this test improvement was being prepared.CheckReadOnlyDestinationused the descriptor that had just read all entries in its writable control. On unpatched main, the read-onlybufcall therefore returned 0 at EOF instead of exercising the output-buffer access violation.Close that descriptor and open a fresh one before the read-only checks. After the
bufandbaseprefusals, restore permissions and confirm entries remain unread. No runtime code changes.Overlap scan: #6044 relocates this test file as part of test-suite organization; it does not implement this fresh-descriptor check. Whichever change lands second must preserve the test adjustment at its resulting location.
Tested
Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON:mainb106f6f8c(the merge of #7672).guest_directory,guest_directory_buffer,guest_directory_rewind,guest_directory_close: 4/4 pass.Stdio.cpprestored from pre-fix8982791bc: the improved test segfaults writing to0x200000000during the read-onlybufcall, rather than merely failing at EOF.This test binary is Windows-only. No Linux runtime behaviour changes.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)