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>
6.9 KiB
libSceHttpCache technical debt
Unknown function info
- libSceHttpCache additional exports - these name/NID pairs are present in the inspected export inventory. Parameter lists, return types and behavior are unverified. Parameterless
intdeclarations are import-resolution placeholders, not verified ABI prototypes; every entry throws throughNotImplemented_nid_no_patch. No runtime functionality is implemented.
The inventory label is not authenticated retail-firmware provenance. The inspected image contains raw module-parameter words 0x13590001 at +0x10 and 0x13600007 at +0x14. Using the published static ELF membership procedure, its 34 unique function NIDs have sorted-LF SHA-256 7a05b0dd86d73e5eade84050580639fb242533a7f114ef96ffde7d259bde84e0; the entry below is present. This digest identifies the function-NID set, not the whole binary or its ABI. An independent review on this PR corroborated these identities using a separately reported 13.42 reference; that does not establish matching binaries, prototypes or behavior.
| Name | NID |
|---|---|
sceHttpCacheEnableCacheInfo |
dIQhFL4sKBo |
sceHttpCacheUnregisterCacheInfoUrl |
3JQc1T-fvmc |
- sceHttpCacheDebugSetUrl, sceHttpCacheSystemSendStatistics, sceHttpCacheSystemTerm and sceHttpCacheSystemShutdown: the supplied implementations return zero without reading arguments. No callers have yet established whether their public prototypes include unused arguments.
sceHttpCacheClearCacheInfoandsceHttpCacheRemoveTag: signatures unverified; parameterless declarations that throw throughNotImplemented_nid_no_patch. The pointer types ofsceHttpCacheClearAllUserTags(a list of at most 20 entries, taken as user ids) andsceHttpCacheRegisterCacheInfoUrlare inferred from the checks.
Functional
-
sceHttpCacheSystemInit and sceHttpCacheSystemClearAll - the wrappers at
0x2d570and0x2d680in the 11.00 system modulelibSceHttpCache.sprx(SHA-2560d825d639b642a73b3ae7d7e0217f602104609d388cf8e0ae83ba50a8a2c2fd1) validate a non-null path of at most 0x400 bytes, return0x817a0012on failure, pass it to their delegate and return 0 without checking its result.SystemInitvalidates the copied path and returns 0 without storing it.SystemClearAllvalidates and then throws throughNotImplemented_nid_no_patch, because the delegate's effect on the per-application caches is not established. The host copies it once throughCopyGuestString_nid_no_patch, so an invalid pointer or an unterminated string across an unreadable page returns0x817a0012instead of faulting. The wrappers' path conversion is not reproduced, so non-ASCII or invalid UTF-8 paths may be accepted, and the console's on-disk layout is not modelled.SystemShutdown,SystemTermandSystemSendStatisticsreturn 0 as their wrappers do. -
libSceHttpCache - cached responses live in process memory, keyed by user, URL and
User-Agentvalue, instead of the console's per-user files, so they are lost when the process exits; they surviveTerm. Request states, freshness, revalidation and header rules follow firmware 13.60, read from disassembly, not measured on a console. Apublicresponse stored while cache sharing is on, which the console files under the store shared by all users, throws throughNotImplemented_nid_no_patch, as do a lookup and aClearAllby another user while such an entry exists, since whether they reach the shared store was not read. The console's debug request header that adds cache state to responses is not reproduced. Header numbers the firmware'sstoulorstolrejects, a null URL inRetrieve(the firmware dereferences it) and an empty header list to return throw. -
libSceHttpCache -
SetQuotaand a non-nullRegisterCacheInfoUrlthrow throughNotImplemented_nid_no_patchonce their arguments pass;RemoveTag,ClearCacheInfoand bothWithMemoryPoolforms have unresolved signatures and throw outright. Cached entries carry the tag of the request that stored them:CreateRequestWithTagrecords a tag of up to 31 bytes with the same user and cache checks asCreateRequest, and rejects a null, empty or longer tag with0x817a0012;Clearerases the stored entries of one user that carry the same tag, andClearAllUserTagserases every tagged entry of the listed users while untagged entries survive. A null, empty or longer tag is0x817a0012, an unknown cache is0x817a0011, and a system or unregistered user clears nothing and succeeds, asClearAlldoes. Whether the console keys a tag to a user, replaces a tag on a later store of the same key, or rejects tags at these lengths has not been measured; the tag lifetime is this host's choice.Initignores its pool size, so the pool allocation failure is not reproduced, and storing never fails, so the console's file errors are not reproduced. -
libSceHttpCache - the freshness lifetime is
ExpiresminusDate, or a tenth ofDateminusLast-Modified, computed on unsigned ticks without comparing them first, and an entry is fresh while its age is below that lifetime, as in firmware 13.60, read from disassembly, not measured on a console. AnExpiresearlier thanDate, or aLast-Modifiedlater thanDate, therefore wraps to a lifetime that never runs out, so the entry keeps being returned as a hit instead of going stale as RFC 9111 asks; this is kept to match the console. -
sceHttpCacheReadData, sceHttpCacheRetrieve, sceHttpCacheRevalidate, sceHttpCacheSetData and sceHttpCacheSetQuota (libSceHttpCache) - probing guest input and output pointers via
GuestCopyIn_nid_no_patch,GuestCopyOut_nid_no_patch, andCopyGuestString_nid_no_patch(preservingerrno), boundingsceHttpCacheSetDatachunks at 64 MiB andsceHttpCacheSetQuotaentries at 4096, and returning0x817a0012(ErrorInvalidValue) on unreadable, unwritable, or oversized arguments (withsceHttpCacheRetrieverolling back state and store changes if copying outputs fails) is a host-safety fallback; console behaviour on unmapped memory or oversized counts is unmeasured. -
Unidentified export
Y3bCbdeHzNgappears in the 3.20 and later version-labelled inventories. Its name, parameters, return type and behavior are unverified. The no-parameter import-resolution declaration throws throughNotImplemented_nid_no_patch.