mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 20:34:31 +00:00
I had initially written this in such a way that it would break if there were multiple entries anywhere other than the first table. This change now works across more complex samples that I have tested against. While here, I did a little moving around and had to create a structure that isn't used other than to know how far to move the offset when parsing. This is because the struct into which I am parsing the data keeps track of other things along the way, so it's size is incorrect. While here, change parse_resource() to be parse_resource_table() as it is more accurate to what it really does.