Add UEFI structs#8
Conversation
Signed-off-by: Morten Linderud <morten@linderud.pw>
|
Thanks a lot for the PR! What are some things that are currently missing in the language in order to properly parse the data? I'm always glad to add new features. |
|
A The second one is that each
Thanks for the work on this project :) |
|
The first issue requires some kind of loops and a way to get the current offset and the size of the whole file probably. That's definitely something I can implement. sizeof and co are planed and will probably come with the next version :) |
You could maybe also do it declaratively by saying the above. Would allow
No, I need to be able to express "read 10 of these structs" with math in practise. |
This would be much appreciated for writing patterns for filetypes like PNG which have an unknown amount of chunks. |
|
For the sake of inspiration I implemented the same with GNU Poke https://github.com/Foxboron/poke-uefi/blob/master/uefi.pk#L87
|
|
I'm just gonna merge this PR now because what the hell |
This is a draft PR that includes the current progress on parsing UEFI structs as defined in Version 2.8 Errata A. Attempting to parse the revocation list published by UEFI as they are easy to fetch and usually interesting to look at.
https://uefi.org/revocationlistfile
Currently it hits the wall of what the pattern language can do, but nonetheless probably interesting.
Signed-off-by: Morten Linderud morten@linderud.pw