[GH-ISSUE #627] [macOS] Regression: Cannot install pkg files after PR 620 (crypto: added destructors and fixed direct memleaks) #149

Closed
opened 2026-02-27 21:04:50 +03:00 by kerem · 1 comment
Owner

Originally created by @shinra-electric on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/627

Regression caused by #620. Cannot install pkg files.

Error message:

libc++abi: terminating due to uncaught exception of type CryptoPP::InvalidArgument: RSA/EME-PKCS1-v1_5: ciphertext length of 256 doesn't match the required length of 255 for this key
Originally created by @shinra-electric on GitHub (Aug 28, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/627 Regression caused by #620. Cannot install pkg files. Error message: ``` libc++abi: terminating due to uncaught exception of type CryptoPP::InvalidArgument: RSA/EME-PKCS1-v1_5: ciphertext length of 256 doesn't match the required length of 255 for this key ```
kerem closed this issue 2026-02-27 21:04:50 +03:00
Author
Owner

@squidbus commented on GitHub (Aug 28, 2024):

PKG is being assigned by copy and the original Crypto instance is deleted, which means that the key pointers in the copy are invalid now that the destructor deletes them. You can verify this by deleting the copy constructor in any of the keyset classes and the compile will fail.

<!-- gh-comment-id:2314914881 --> @squidbus commented on GitHub (Aug 28, 2024): PKG is being assigned by copy and the original Crypto instance is deleted, which means that the key pointers in the copy are invalid now that the destructor deletes them. You can verify this by deleting the copy constructor in any of the keyset classes and the compile will fail.
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#149
No description provided.