Project_CTR icon indicating copy to clipboard operation
Project_CTR copied to clipboard

ctrtool 1.2.0 fails to parse CIA signatures when built with optimizations

Open leo60228 opened this issue 1 year ago • 3 comments

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.

leo60228 avatar Nov 02 '23 01:11 leo60228

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?

jakcron avatar Sep 07 '24 02:09 jakcron

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.

leo60228 avatar Sep 07 '24 02:09 leo60228

Awesome thank you, I'll try to reproduce this and release a fix.

jakcron avatar Sep 07 '24 03:09 jakcron