WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Key store file assertion error #66

@CHr15W3

Description

@CHr15W3

Hi,
I'm having some trouble analyzing the attached image (the second part of which should be a zen5 UEFI).

When analyzing this, the assertion in key_store_file.py:152, assert self.size == self.buffer_size fails. Dumping these variables, as well as the key_store_size and _start from the calling function yields

key_store_start=256
key_store_size=5744
self.size=4158800887
self.buffer_size=5744

, compared to

key_store_start=256
key_store_size=10144
self.size=10144
self.buffer_size=10144

for a previously, correctly parsed entry.

Unfortunately, I don't know the format very well, but could this be a misidentified entry and therefore result in the header being parsed the wrong way?

Thanks and best!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions