fix(libkernel): report no sender for stream recvfrom calls #3957
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3957"
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 MarcZX10 on 2026-10-11T19:51:37Z.
What
Carries Hussein Kadhim's fix for #3942, preserving the original commit author. A stream socket has no sender address for
recvfrom; when the host provides no IPv4 or IPv6 address, the guest call now reports an address length of zero and leaves the address buffer untouched. UDP sender-address behavior is unchanged.Tested
BUILD_TESTING=ON, on currentmain4be9c255: builtguest_tcp_tests;guest_tcppassed 1/1.tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
main; no other open PR implements this behaviorImported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T20:43:54Z.
Windows run of this head (
87e9c7015, onmain12c226628): Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release, full build.guest_tcp,guest_udp,guest_socket_read_write,guest_poll,guest_socket_pair,guest_dupandguest_socket_events: 7/7 pass in 3 runs.Udp.cppreverted tomain,guest_tcpaborts (0xc0000409) in the newStreamReceiveReportsNoSendertest, so on Windows the test catches the bug and the fix is what makes it pass.main()inGuestTcp.cpp, so any two of them conflict there (Udp.cppmerges cleanly). The second and third to land will need a small rebase.