GodMode9 icon indicating copy to clipboard operation
GodMode9 copied to clipboard

[BUG] Encrypt/Decrypt CIA error + crash

Open Ammako opened this issue 1 year ago • 1 comments

So you want to report a bug?

I've sourced a handful dev-encrypted CIAs that I wanted to decrypt and re-encrypt with retail keys. The problem that happens is:

  • first file decrypts/encrypts fine
  • second file reports decryption/encryption failed
  • if I re-try again on that same file, gm9 crashes with a data abort exception while also properly decrypting/encrypting the file.

The files themselves -should- be fine, as far as I know; if they're the first file I process in that session then the operation succeeds without an issue, even if that same file failed earlier, and they work perfectly fine once installed despite the errors.

Info about your system

O3DS, gm9 2.1.1 fastboot3ds 1.2; in case it matters the files in question are devmenu, config and testmenu from 0.35.0 dev firmware

Have you actually read this? [x] I have read the information above

Ammako avatar Aug 29 '23 21:08 Ammako

Forgot to include this

Crash dump:
Exception: Data Abort (4)
GodMode9 v2.1.1
2023-08-29 17:04:40
 
R00: 00040130 | R01: 2011AD90
R02: 0004FA08 | R03: 0004FA09
R04: 00002102 | R05: 0805FB90
R06: 0805E534 | R07: 0805E53C
R08: 00000001 | R09: 00040130
R10: 0003BEEF | R11: 0000EC00
R12: 2016A798 | R13: 227EE670
R14: 0803D2C1 | R15: 080442A6
CPSR: 800000FF

Stack:
227EE670: 01 00 00 00 70 F4 FF 01 EF BE 03 00 98 AD 11 20 
227EE680: C0 3A 00 00 00 00 00 00 54 35 00 20 E7 CA 03 08 
227EE690: 98 AD 11 20 4B 26 02 08 00 00 00 00 00 E6 05 00 
227EE6A0: 5C E6 11 20 E0 E6 7E 22 DA CB 23 6E F0 E6 7E 22 
227EE6B0: 00 1F 06 00 00 00 00 00 00 00 00 00 04 00 00 00 
227EE6C0: 00 E6 05 00 00 00 00 00 01 00 00 00 C9 FF FF FF 
227EE6D0: B8 AD 11 20 00 00 00 00 08 9B 9C 6E 03 02 13 25 
227EE6E0: 13 88 34 8C 57 43 91 10 F7 33 BF 66 34 50 B2 00 

Code:
08044290: 2301 444A 188F 46BC 6884 4F54 4313 42BC 
080442A0: D100 E07E 68C0 60E0 6084 604B 4663 601A 

Ammako avatar Aug 29 '23 21:08 Ammako