fix(ajm): reject ATRAC9 gradients beyond decoder bounds #2395
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2395"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ArchitDewan on 2026-10-09T18:00:37Z.
What
Fixes #2345. LibAtrac9 now rejects gradient end units above 31 before they can write past
Block::Gradient. The CMake build applies this change to a generated copy ofunpack.c, leaving the pinned submodule untouched. Added a regression test for end units 31, 32 and 47.Tested
Focused decoder regression test and sanitizer check passed locally. Full Windows and Linux builds and tests are pending CI.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T18:00:48Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:29:24Z.
Checked on the PR merged onto current
main: the patchedunpack.cis generated at configure time (fails loudly if the guard text changes),libSceAjm.nativeandatrac9_gradient_testsbuild, andatrac9_gradientpasses. The same test against the unpatchedunpack.cfails, and passes under ASan/UBSan with the patch. Limit 31 matchesGradient[31]. Merging.