pombreda / portable-executable-library

Automatically exported from code.google.com/p/portable-executable-library
1 stars 0 forks source link

raw data in class section #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
raw data defined as std::string in class section(& tls),
in general, a section may includes bytes of code,
so a byte 0 will cut off my data.
I replace it with vector<unsigned char> and it seems
to be working.

Original issue reported on code.google.com by Swat...@gmail.com on 25 Jun 2013 at 12:20

GoogleCodeExporter commented 9 years ago
std::string is able to keep all bytes, including 0x00.
So, std::string is used everywhere in PE bliss to keep raw binary data.

Original comment by rukaimi on 28 Jun 2013 at 10:06

GoogleCodeExporter commented 9 years ago

Original comment by rukaimi on 29 Jun 2013 at 7:53