31 Commits
Author SHA1 Message Date
Dean 170c649268 Merge pull request #25539 from mauroalvare/fix/httpcache-unmerged-header-prefixes
fix(libSceHttpCache): exclude unmerged 304 header prefixes
2026-11-25 06:48:02 +13:00
LeandroLP23andClaude Opus 5.5 a263c43641 refactor(httpcache): drop errno guards around guest copies
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:51:16 +01:00
Mauro Alvarez 4ad11d42a1 fix(libSceHttpCache): exclude unmerged 304 header prefixes 2026-11-22 04:58:54 -03:00
RyanIsAinmDomandClaude Opus 5.5 985a208eb9 feat(libSceHttpCache): answer Retrieve result 2 with a pool but no response as firmware 13.42 does
The 13.42 reading lists RetrieveWithMemoryPool's null-response check
after the size steps of both result 1 and result 2, and its unread
0x40e50 step has no listed return, so result 2 with a pool and no
response also returns 0x817a0012 after writing *result, keeping the
lookup's update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:08:44 -05:00
RyanIsAinmDomandClaude Opus 5.5 70048cef06 feat(libSceHttpCache): give sceHttpCacheEnableCacheInfo its firmware 13.42 signature
Firmware 13.42 reads one bool. The call still throws: its result comes
from 0x2e260, which was not read, and it talks to a system service over
IPMI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:49:27 -05:00
RyanIsAinmDomandClaude Opus 5.5 ddc70eef7c feat(libSceHttpCache): answer cache-info, RemoveTag and pool response checks as firmware 13.42 does
Firmware 13.42 returns 0x817a0014 from ClearCacheInfo, and from
UnregisterCacheInfoUrl with a non-null URL, while no cache-info object
exists; that holds here because EnableCacheInfo throws. RemoveTag gets
its signature and checks and throws past them. The pool forms return
0x817a0012 for a found response with a pool but no response, keeping
the lookup's update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:37:31 -05:00
RyanIsAinmDomandClaude Opus 5.5 5060353cf6 feat(libSceHttpCache): answer WithMemoryPool checks and misses as firmware 13.42 does
sceHttpCacheRetrieveWithMemoryPool and sceHttpCacheRevalidateWithMemoryPool
threw on every call. Firmware 13.42 looks the request up, checks the pool,
request and result pointers, then calls the plain forms' parse and core; a
call with nothing found returns 0. The pool size and copy were not read, so
a call with a response or next request to copy still throws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:42:53 -05:00
Waleed Ali Tahir 86ac047112 fix(libSceHttpCache): copy sceHttpCacheRevalidate inputs and outputs safely 2026-11-15 17:57:48 +05:00
PrivacyOnion cf981bc6fb fix(libSceHttpCache): bound SetData/SetQuota, rollback failed Retrieve, and document fallbacks 2026-11-15 11:10:28 +01:00
PrivacyOnion 9082b39c77 fix(libSceHttpCache): copy request, data, and quota inputs via GuestCopyIn/Out 2026-11-15 11:10:27 +01:00
sarveshgamers 066c166d14 feat(libSceHttpCache): record cache tags and clear entries by tag 2026-11-14 13:29:37 +05:30
Dean f893b12240 Merge pull request #16208 from MarcZX10/fix-httpcache-read-data-count-clamp
fix(libSceHttpCache): clamp sceHttpCacheReadData to INT_MAX before copying
2026-11-09 12:16:12 +13:00
Eduardo Ruiz 80edbbc665 fix(libSceHttpCache): throw for SystemClearAll after path validation 2026-11-06 23:02:27 +01:00
MarcZX10 4421fae1b3 fix(libSceHttpCache): clamp sceHttpCacheReadData to INT_MAX before copying
sceHttpCacheReadData copied min(size, remaining body bytes) and returned
that count as an int. A count above INT_MAX, reachable with a cached body
larger than 2 GiB and a caller buffer that large, was converted to a
negative int that callers read as an error, while the read offset had
already advanced. Clamp the count to INT_MAX before the copy, as the
sibling sceHttp2ReadData does, so the returned value is always a valid
byte count and the remaining bytes stay available to the next call.
2026-11-05 20:40:27 +00:00
Eduardo Ruiz 1a478c3a81 fix(libSceHttpCache): copy system paths through the bounded helper 2026-11-05 11:05:38 +01:00
Eduardo Ruiz 10a6e74376 feat(libSceHttpCache): implement the system cache lifecycle
Recover the 11.00 wrappers' path validation for sceHttpCacheSystemInit and sceHttpCacheSystemClearAll: a non-null path of at most 0x400 bytes. SystemInit stores the path and SystemClearAll clears the host's in-memory store, because the host has no on-disk cache. SystemShutdown returns 0 as its wrapper does. The wrappers' path conversion and the console's on-disk layout are not reproduced.
2026-11-05 11:05:38 +01:00
Kyon 1d671b616c feat(libSceHttpCache): declare another unidentified export 2026-10-30 17:01:16 +00:00
Kyon 8ce07e13f4 feat(libSceHttpCache): declare 2 additional exports 2026-10-27 13:04:56 +00:00
hypermist da1a010381 refactor(libSceHttpCache): declare the cache signatures once in the library header 2026-10-25 13:54:32 +13:00
hypermistandClaude Opus 5.5 eac4379921 Merge remote-tracking branch 'upstream/main' into feat/httpcache-cache
Resolved Export.cpp: kept the cache implementation and added the library header include.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:41:28 +13:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
hypermistandClaude Opus 5.5 695c88aaf1 feat(libSceHttpCache): cache responses with the firmware's freshness and revalidation rules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 01:15:19 +13:00
hypermist 1898466430 Merge remote-tracking branch 'upstream/main' into fix/libs-firmware-constants-4
# Conflicts:
#	docs/dev/debt/libSceHttpCache.md
2026-10-22 14:51:35 +13:00
boykopovar dd1478f4af fix(httpcache): restore request and memory pool argument layouts 2026-10-21 21:48:11 +03:00
hypermistandClaude Opus 5.5 44cc6ecb12 fix(libs): return what the firmware returns from 29 more calls it does not implement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-22 03:15:51 +13:00
Dean 14a903974e Merge pull request #8945 from xdCloudy/feat/ps5-httpcache-exports
feat(libSceHttpCache): declare PS5 pending exports
2026-10-21 21:32:24 +13:00
xdCloudy 57bb18047c feat(libSceHttpCache): declare pending PS5 exports 2026-10-21 08:01:05 +01:00
hypermistandClaude Opus 5.5 afbd9b882f fix(libs): return what the firmware returns from 24 utility calls it does not implement
ContentBinder, CompanionUtil, ErrorDialog OpenDetail/OpenWithReport,
ImeDialog ForTestFunction, HttpCache SystemTerm/SendStatistics,
MoveTracker GetVersion/RecordStop, BluetoothHid and SystemGesture debug
versions and Mbus Term/AcquireControlList are a single constant return
in the firmware modules; these exports now return the same value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-20 22:36:53 +13:00
akkadbakkad89andDevin 7ccf4da486 fix(prx): align declarations to the PS5 3.20 export inventory and add debt notes
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-19 12:25:10 +00:00
akkadbakkad89 26177b41e3 feat(prx): declare exports for seven more confirmed system libraries 2026-10-19 10:11:10 +00:00
xdCloudy bec9cf2e5c feat(prx): inventory confirmed PS5 system libraries 2026-10-19 08:27:22 +01:00