test(agc): expect the signature rejection for a corrupted request #20

Closed
franpeza wants to merge 1 commit from upstream-pr/20 into main
franpeza commented 2026-09-26 20:28:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by franpeza on 2026-09-26T20:28:09Z.


RunBdaContractTests corrupts the first byte of a serialized BDA request and expects the serialization version rejection. Since bf43995 that byte is part of the signature, which is checked before the version, so the deserializer rejects the request with signature and the test fails.

The test now expects the signature rejection.

Testing: the BDA contract test passes with this change in my fork's macOS build. I have not built this branch on Linux or Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4649477805 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20). Originally posted by [franpeza](https://github.com/franpeza) on 2026-09-26T20:28:09Z. --- `RunBdaContractTests` corrupts the first byte of a serialized BDA request and expects the `serialization version` rejection. Since bf43995 that byte is part of the signature, which is checked before the version, so the deserializer rejects the request with `signature` and the test fails. The test now expects the `signature` rejection. Testing: the BDA contract test passes with this change in my fork's macOS build. I have not built this branch on Linux or Windows.
obelisk-complex commented 2026-09-26 20:53:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by obelisk-complex on 2026-09-26T20:53:23Z.


This test is currently EXCLUDE_FROM_ALL and never registered with ctest (tracked separately in #17/#21), so nothing has caught its drift either way.

Applying this exact fix and registering it with ctest on Linux, it still SIGABRTs, for an unrelated reason: Deserialize's throw path hits the same libstdc++ ABI interposition bug fixed in #14 (confirmed with gdb; #14 is currently open, unmerged). Once #14 merges, this fix should go green on Linux. Not raising a separate issue for it since it's the same root cause #14 already documents; flagging here since this PR's own testing note says Linux wasn't tried.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5849791932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20#issuecomment-5849791932). Originally posted by [obelisk-complex](https://github.com/obelisk-complex) on 2026-09-26T20:53:23Z. --- This test is currently `EXCLUDE_FROM_ALL` and never registered with `ctest` (tracked separately in #17/#21), so nothing has caught its drift either way. Applying this exact fix and registering it with `ctest` on Linux, it still SIGABRTs, for an unrelated reason: `Deserialize`'s throw path hits the same libstdc++ ABI interposition bug fixed in #14 (confirmed with `gdb`; #14 is currently open, unmerged). Once #14 merges, this fix should go green on Linux. Not raising a separate issue for it since it's the same root cause #14 already documents; flagging here since this PR's own testing note says Linux wasn't tried. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!20
No description provided.