Repository navigation
feat(zlib): implement sequential libSceZlib decompression - #1824
Conversation
58ff32c to
8541604
Compare
1d3337c to
aa3e4e4
Compare
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
Removing that block fixes it. configure_windows_unwind(guest_zlib_tests)
- if(MINGW)
- target_compile_options(guest_zlib_tests PRIVATE -fasynchronous-unwind-tables)
- endif()🤖 Addressed by Claude Code |
|
Fixed the reported Windows abort in 913279b by removing the I reproduced the abort at Verification of the fixed commit:
Repository conventions and test-registration checks passed. The PR description now includes the Windows and WSL results. This fix and verification were AI-assisted. |
|
Checked the five exports against SharpProspero (ABI, 64 KiB / 2 KiB limits) and shadPS4 (error values, status mapping); full build and ctest are green on current main ( Added one commit: a TechnicalDebt note that shadPS4 also requires the output length to be a multiple of 2 KiB and returns Merging once CI is green on the new head. |
913279b to
ab22fb6
Compare
Resolve the missing system library with checksum-validating decompression. Add behavioral tests and document unsupported request semantics.
Remove the asynchronous unwind override so SysV exports use the project DWARF unwinding and avoid invalid SEH assembler directives.
Co-Authored-By: Claude <noreply@anthropic.com>
ab22fb6 to
810eda2
Compare
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
|
Checked the five exports against SharpProspero (ABI, limits) and shadPS4 (error values), the TechnicalDebt entry, and the template. Full build and ctest are green on current main ( |
What
Add the five
libSceZlibexports required by Prospero Explorer in #1578. Reuse the existing JPEG dependency's bundled zlib for bounded RFC1950 decompression with checksum validation. Submission completes immediately and produces a request ID for the wait/result lifecycle.This is partial sequential support. Timed waits, multiple outstanding requests, repeated result retrieval and finalization with unread results throw. SharpProspero supplies the caller ABI and output limits. Error-status mappings follow shadPS4. Conflicting PS4 signatures and unverified PS5 scheduling, scratch-buffer and result semantics are listed in TechnicalDebt.
Tested
Linux x86-64.
guest_zlibpasses independent compressed fixtures, plaintext checks, checksum/truncation failures, exact and insufficient capacity, alignment, output canaries, request IDs and lifecycle guards. Standalone ASan/UBSan passes. Existing JPEG and PNG decoder tests also pass.Native Windows 11 Pro (build 26300), MinGW-w64 GCC 15.2.0 (WinLibs x86_64-ucrt-posix-seh r7), Release. Reproduced the reported abort at
sceZlibInitialize(nullptr, 1)before removing the test's-fasynchronous-unwind-tablesoverride. At commit913279b8,guest_zlibpasses five consecutive runs;windows_exceptionsand the four JPEG/PNG decoder tests also pass. The rebuilt test uses DWARF unwind frames and__gxx_personality_v0.WSL Ubuntu 24.04 x86-64, GCC 13.3.0, Release, at the same fixed commit.
guest_zlibpasses five consecutive runs;exception_runtime,exception_personality,exception_c_cleanupand the four JPEG/PNG decoder tests also pass. The Linux compile command contains neither Windows unwind flag. Repository conventions and test-registration checks pass.A local consumer compiled for FreeBSD against ps5-payload-sdk v0.43 headers passes through the patched NID exports. It checks 64-bit request IDs, 32-bit results and output bytes. Host z_stream and errno never cross the Sony API. SDK tooling is outside the repository. No PS5 execution was performed.
The released Prospero Explorer v1.0 binary previously stopped at missing
libSceZlib.prx. With this module it reaches the next unresolvedmadviseimport. All five Zlib imports resolve. This does not make the title run.Independent code review passes both standards and spec, with no actionable findings.
Checklist
main; no other open PR implements the same functions