You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The writer modifies the PE without my interaction. Sadly only my set virtual_address is accepted. The size is being reset to the original values.
The following screenshot shows the .reloc section three times.
original section
then modified with the code above
the result if I read the file that pe_writer wrote back in:
I see two options here, either the pe_writer respects the &pe_mem reference and doesn't modify it on its own or ifrit should clearly state that all modifications have to happen trough the pe_writer and make all pe fields accessible.
The text was updated successfully, but these errors were encountered:
Maybe it's not clear enough from docs / etc. (open to suggestions on that)
But the library is not made for you changing arbitrary elements and expecting the layoutting to work out of the box.
It's made to recompute the offsets that cannot be predicted, e.g. the pointer on disk.
If you want to write a structure as-is, serialize it, this is not this library's concern per se, but just normal Goblin usage.
I tried to write a parsed PE to file.
The writer modifies the PE without my interaction. Sadly only my set virtual_address is accepted. The size is being reset to the original values.
The following screenshot shows the .reloc section three times.
I see two options here, either the pe_writer respects the &pe_mem reference and doesn't modify it on its own or ifrit should clearly state that all modifications have to happen trough the pe_writer and make all pe fields accessible.
The text was updated successfully, but these errors were encountered: