Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of invalid IMG4s #13

Open
b1n4r1b01 opened this issue Aug 24, 2020 · 1 comment
Open

Creation of invalid IMG4s #13

b1n4r1b01 opened this issue Aug 24, 2020 · 1 comment

Comments

@b1n4r1b01
Copy link

Newer IM4Ps have a SEQUENCE attached at the end. When creating an IMG4 the last INTEGER gets changed and makes the IMG4 invalid. This SEQUENCE seems to only be present on A11+ IM4Ps but I have only tested this on an A13 device and restoring this INTEGER from the original IM4P makes the image valid.

1158681:d=1 hl=2 l= 116 prim: OCTET STRING [HEX DUMP]:3072303702010104108B899A083A93F9788381A12B63CDD9BA04204983AD5134850A540BB81264F5DE41A764A0EACF84F0D857B6649800C49004A230370201020410F3B47B6767EBDCDA3E7B5363D80A5A6F0420E67E948423DE8E0294400FF6B5936E1BD6282ADD0F757A88D880450A7803D5AA. <---[KEYBAGS]
1158799:d=1 hl=2 l= 8 cons: SEQUENCE
1158801:d=2 hl=2 l= 1 prim: INTEGER :01
1158804:d=2 hl=2 l= 3 prim: INTEGER :177500 <---[This thing gets changed and it shouldn't]

@xerub
Copy link
Owner

xerub commented Oct 27, 2020

Hey, thanks for reporting this. I believe 8ffa833 should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants