Commit Graph
20 Commits
Author SHA1 Message Date
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