Commit Graph
20967 Commits
Author SHA1 Message Date
AZLisme 816ca46c66 docs(libressl3): qualify ASN.1 native decoding evidence 2026-10-26 09:51:16 +08:00
Himansh Raj 8a9a741b68 fix(agc): clear a reused pooled buffer's unused tail on macOS
MoltenVK has no robustBufferAccess2, so a robust read past the end of a
pooled buffer is clamped into its slot instead of returning zero. A
100-byte buffer placed in a 256-byte slot then read the bytes an earlier
user left there (0xabababab), and agc_driver_pooled_buffer_range failed.
On macOS, when a host-coherent mapped slot is handed to a new buffer,
the bytes past the requested size are cleared to zero.

Linux and Windows compile the same code as before.
2026-10-26 07:19:28 +05:30
Dean 504ea3b53b Merge pull request #10289 from al3w0f205/test/appcontent-uninitialized-mount-and-infolist
test(libSceAppContent): cover uninitialized rejection in sceAppContentTemporaryDataMount
2026-10-26 14:48:49 +13:00
Dean 3326a27071 Merge pull request #10523 from YossiYad/feat/np-tus-sync-wrappers
feat(libSceNpTus): implement the nine blocking data and variable calls
2026-10-26 14:48:15 +13:00
Dean 3af09d95e2 Merge pull request #10494 from xXPBSXx/carry/6544-relinked-nested
fix(libc): look in prx, sce_module and sce_modules for a relinked module after its own directory
2026-10-26 14:47:47 +13:00
harisibrar1 7746b7a6f9 Merge remote-tracking branch 'origin/main' into fix/so-acceptfilter-einval 2026-10-25 21:44:28 -04:00
Dean a3987a1eca Merge pull request #10718 from rooklz/fix/cescs-strict-jis0208
fix(libSceCesCs): map the strict JIS X 0208 profiles' unsettled cells as the console does
2026-10-26 14:40:45 +13:00
Dean faa88a412b Merge pull request #10608 from edubox/feat/libc-underflow-error
feat(libc): export std::underflow_error type info, vtable and destructor
2026-10-26 14:40:05 +13:00
Dean db1a91f42b Merge pull request #10303 from Bram910/fix/native-path-null-bytes
fix(io): reject NUL bytes in native file paths
2026-10-26 14:39:36 +13:00
Dean Galvin d84ce7c11c fix(agc): suspend the tracker lock around the unwatch hook 2026-10-26 14:36:49 +13:00
Dean Galvin 72598e34c8 Merge branch 'main' into pr/unwatch-hook-exits-v2 2026-10-26 14:36:49 +13:00
xXPBSXx 4322713f2a Merge upstream/main into docs/debt-hmd2-open-initialize-title 2026-10-26 02:32:21 +01:00
Dean 732ab06f41 Merge pull request #10354 from JJenkx/windows/libc-nextafter-msun
fix(libc): compute nextafter and nextafterf with FreeBSD msun's algorithm, as titles' libc.prx does
2026-10-26 14:30:57 +13:00
Dean d31f372e33 Merge pull request #10062 from imellag/fix/agc-moltenvk-destroy-at-idle
fix(agc): destroy buffers and memory on MoltenVK only while the graphics queue is idle
2026-10-26 14:28:45 +13:00
Dean 36df54b472 Merge pull request #10387 from JJenkx/windows/libc-ctype-console-masks
fix(libc): return the console's class bits from the ctype functions
2026-10-26 14:28:15 +13:00
Dean 517a7b12b8 Merge pull request #10525 from YossiYad/feat/np-party-plain-queries
feat(libSceNpParty): implement sceNpPartyGetMembers, sceNpPartyGetMemberInfo and sceNpPartyRegisterHandler
2026-10-26 14:27:45 +13:00
Dean 853ffe0f69 Merge pull request #10794 from slopgobblercobbler/feat/kernel-sys-sce-pthread-main
feat(libkernel_sys): implement scePthreadMain through pthread_main_np
2026-10-26 14:27:16 +13:00
Dean dbf4f6aa3f Merge pull request #10607 from roboterspinne/fix/relinker-linux-run-path
fix(relinker): validate every entry of the Linux run path
2026-10-26 14:26:39 +13:00
Adrià 3b252b44fe Merge pull request #9561 from DavidSamir/feat/libkernel-fcntl-osync
feat(libkernel): sync each write on a file whose O_FSYNC flag is set
2026-10-26 02:26:06 +01:00
p3nicillinandClaude Opus 5.5 2387f0ece7 test(libkernel): check that MAP_EXCL replacement leaves neighbouring pages alone
Also word the debt entry as Prospero Win's report, not a measurement here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 01:24:42 +00:00
Himansh Raj 38a945da2b fix(macos): keep VideoOut window queries and SDL errors on the main thread
On macOS:

- ToggleFullscreen reads the window flags and sets fullscreen in one
  main-thread call, instead of reading the flags on the presentation thread.
- DisplayWindow records SDL_GetWindowID while creating the window on the main
  thread and exposes it as Id(). The mouse, keyboard, IME and pad event
  routing compares against it instead of calling SDL_GetWindowID from the
  presentation thread.
- SDL_InitSubSystem, PadInput::setMouseMode and MouseInput::UpdateCapture copy
  SDL_GetError inside the main-thread call that failed and report that copy,
  since SDL error strings are per thread.
2026-10-26 06:53:06 +05:30
Dean Galvin e76147bca9 Merge branch 'main' into fix/pngdec-large-image-info 2026-10-26 14:17:59 +13:00
Dean 1c9064435d Merge pull request #10451 from Danigamer05/fix/pngdec-16bit-input
fix(pngdec): honor the 16-bit input attribute
2026-10-26 14:16:21 +13:00
Dean 98891b5a0a Merge pull request #10403 from roboterspinne/fix/relinker-reject-second-pt-dynamic
fix(relinker): reject a second PT_DYNAMIC segment
2026-10-26 14:15:52 +13:00
Dean 0f34ebb853 Merge pull request #10446 from Danigamer05/fix/keyboard-key2char-contract
fix(keyboard): preserve raw keys and ignore the Kana LED
2026-10-26 14:12:38 +13:00
Dean f92497d1e5 Merge pull request #9780 from Retr0G28/fix/kevent-rotate-reported-knotes
fix(libkernel): move every knote kevent reports behind the waiting ones
2026-10-26 14:12:10 +13:00
Dean e45c9191bd Merge pull request #8926 from EagleBearerYS/fix/agc-retired-import-rewatch
fix(agc): put a retired import's unchanged ranges back in the write watch
2026-10-26 14:11:43 +13:00
vaibhavindalia a385eee97c fix(libkernel_sys): validate descriptor first in fchown 2026-10-26 06:34:33 +05:30
orezraeyandClaude Opus 5.5 655d0f3f32 Merge main into feat/videoout-composite-overlay
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 21:51:50 -03:00
JJenkxandClaude Opus 5.5 0f7056d67b fix(libc): compute logb and logbf with FreeBSD msun's algorithm, as titles' libc.prx does
logb and logbf returned the host's logb, which sets ERANGE for a zero
argument on Windows and returns signalling NaNs unquieted. The titles'
copies are FreeBSD msun's s_logb.c and s_logbf.c, which set no errno and
quiet a NaN through x * x; both functions now compute that algorithm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 20:50:11 -04:00
UnhealthyKraken e9d4b8c282 test(freetype): enforce matching patched runtime DLL paths 2026-10-26 00:44:55 +00:00
xXPBSXxandClaude Sonnet 5.5 10781b738d fix(tools): let an unreadable pad command file fail instead of resetting the sequence
previous_sequence caught PermissionError and IsADirectoryError and returned 0,
so an unreadable command file was silently overwritten with a restarted
sequence. main() already rejects directory targets, so only FileNotFoundError
is a valid empty start. Cover the unreadable case with a mocked PermissionError,
which needs no chmod and also runs for privileged writers.

Addresses the changes requested in the review of 19.10. and 24.10.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-26 01:43:59 +01:00
Lautaro 0be86904b3 fix(tools): normalize pad input output encoding and validate target path
Ensure pad_input writes controller commands with explicit UTF-8 encoding and UNIX LF newlines across all host platforms. Validate that the target path is not a directory and that its parent directory exists before attempting to write.
2026-10-26 01:43:59 +01:00
Romans Pokrovskis 7dde90dc9c chore: refresh CPU store pins on main 5b85225ef3 2026-10-26 02:42:22 +02:00
kenny soloandClaude Opus 5.5 aea49c62ad docs(libkernel): end the pthread_cond_setname_np debt entry with a period
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-25 20:41:35 -04:00
kenny soloandClaude Opus 5.5 524af4efbb fix(libkernel): declare pthread_cond_setname_np in Api.hpp
Move the declaration out of the test's local extern block so GuestPthreadCondSetname uses the shared libkernel API header, like the other pthread_cond exports.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-25 20:41:35 -04:00
kenny soloandClaude Opus 5.5 15ed96d647 fix(libkernel): stop storing the pthread_cond_setname_np name
scePthreadCondInit ignores its name and nothing reads a condition variable name back, so pthread_cond_setname_np now only validates the condition variable and the name. Drops the stale libkernel_sys declaration and moves the debt entry to Silent stubs, citing shadPS4.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-25 20:41:35 -04:00
kenny soloandClaude Opus 5.5 70557b2e16 feat(libkernel): add pthread_cond_setname_np
Store the name on the condition variable, creating a statically initialized one first, and return EINVAL for a destroyed one. A null cond or a null name throws, recorded in the libkernel debt file.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-25 20:41:35 -04:00
UnhealthyKraken 0a9e48f886 fix(freetype): build the patched kernel needed by border fixtures 2026-10-26 00:41:18 +00:00
Himansh Raj d67dc5ba43 fix(macos): set relative mouse mode from the main thread
MouseInput::UpdateCapture and PadInput::setMouseMode switch SDL's relative
mouse mode, which on macOS warps and hides the cursor through the window, from
the presentation thread. On macOS both now read and set it through
RunOnMainThread.
2026-10-26 06:06:22 +05:30
Dean 5b85225ef3 Merge pull request #9797 from Terminev/feat/npwebapi-offline-requests
feat(libSceNpWebApi): add user contexts, requests and push event callbacks offline
2026-10-26 13:34:33 +13:00
Dean 73a5dc0886 Merge pull request #10807 from milescoviello/fix/presentation-source-host-fallback
fix(agc): place the presentation source in host memory when device memory runs out
2026-10-26 13:34:02 +13:00
Himansh Raj ee2bfe5dbb fix(macos): query the window from the main thread in VideoOut
The presentation thread still queried the SDL window directly on macOS:
SDL_Vulkan_GetInstanceExtensions in windowExtensions, SDL_GetWindowFlags and
SDL_Vulkan_GetDrawableSize in windowDrawableSize, SDL_GetWindowSize after
each flip, and SDL_GetWindowDisplayIndex with SDL_GetCurrentDisplayMode in
updateDisplayRefreshRate. Each now runs through RunOnMainThread on macOS, the
same way window creation, the Vulkan surface and event pumping already do.
2026-10-26 06:04:00 +05:30
Adrià ef1ddae699 Merge pull request #9739 from veosett/codex/check-compile-save-temps
fix(tools): strip save-temps flags from syntax checks
2026-10-26 01:32:56 +01:00
Dean e41113fd39 Merge pull request #10352 from Bram910/fix/audit-dynamic-tables
fix(tools): validate ELF import table file ranges
2026-10-26 13:31:43 +13:00
Dean 9c435c2812 Merge pull request #10399 from JJenkx/windows/libc-strcoll-byte-difference
fix(libc): return the byte difference from strcoll as titles' libc.prx does
2026-10-26 13:31:16 +13:00
Dean 10126f0c64 Merge pull request #9374 from cadenasynyster/test/windows-symlink-tests
test(libkernel): create the readlink and lutimes test links with CreateSymbolicLinkW on Windows
2026-10-26 13:30:41 +13:00
al3w0f205 aa1581d59f test(libSceHmd): cover distortion work memory query aliases 2026-10-25 19:28:58 -05:00
harisibrar1andClaude Opus 5.5 344acf3e66 docs(libSceRudp): link the detailed 13.42 report for sceRudpPollCancel
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 20:28:44 -04:00
al3w0f205 58cca6fe6d test(libSceAppContent): cover uninitialized rejection in sceAppContentTemporaryDataMount 2026-10-25 19:26:53 -05:00