Project_CTR
Project_CTR copied to clipboard
ctrtool 1.2.0 fails to parse CIA signatures when built with optimizations
After updating ctrtool from 0.7 to 1.2.0, I get an [ntd::n3ds::es::SignatureDeserialiser ERROR] Unexpected signature type.
error for all CIA files I have, including homebrew like FBI (from https://github.com/Steveice10/FBI/releases/download/2.6.1/FBI.cia) when building with optimizations.
Sorry for the late comment. There’s some stuff that’s unclear to me.
Are you building CTRTool yourself or is this a build that’s included on the GH release?
What platform/architecture are you running CTRTool under.
And if you are building CTRTool yourself, what optimisations are you including?
Are you building CTRTool yourself or is this a build that’s included on the GH release?
The former.
What platform/architecture are you running CTRTool under.
Linux, x86_64
And if you are building CTRTool yourself, what optimisations are you including?
-O2
. This is enabled by default for all packages built in Nixpkgs to ensure _FORTIFY_SOURCE
applies.
Awesome thank you, I'll try to reproduce this and release a fix.