8000 Creation of invalid IMG4s · Issue #13 · xerub/img4lib · GitHub
[go: up one dir, main page]

Skip to content

Creation of invalid IMG4s  #13

Open

Description

@b1n4r1b01

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]

Activity

  1. xerub commented on Oct 27, 2020

    @xerub
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0