goblin icon indicating copy to clipboard operation
goblin copied to clipboard

Support FromCtx and IntoCtx for pe structs

Open Ben-Lichtman opened this issue 4 years ago • 1 comments

the layout of PE structs is pretty well documented, so it should be possible to turn PEs to and from bytes.

If this is not completely possible, it should at least be mostly possible - however many of the headers don't implement the correct traits.

Ben-Lichtman avatar Jul 01 '21 03:07 Ben-Lichtman

So I thought the PE structs implemented FromCtx (reading) ? However for I don't think IntoCtx has been implemented yet (writing)

That would be pretty awesome :) I think the only reason it isn't done is simply no one had the time to write the corresponding IntoCtx trait impls (e.g., like was done for mach + elf); if you'd like to send a PR, that would be great!

m4b avatar Jul 04 '21 17:07 m4b