mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-27 21:04:31 +00:00
Bugfix: Do not use memset on non-POD structures
This commit is contained in:
parent
0d0ca1861c
commit
e632a37290
@ -363,8 +363,6 @@ bool parse_resource_table(bounded_buffer *sectionData,
|
||||
}
|
||||
|
||||
resource rsrc;
|
||||
memset(&rsrc, 0, sizeof(resource));
|
||||
|
||||
rsrc.type_str = rde->type_str;
|
||||
rsrc.name_str = rde->name_str;
|
||||
rsrc.lang_str = rde->lang_str;
|
||||
|
@ -82,6 +82,10 @@ typedef struct _bounded_buffer {
|
||||
} bounded_buffer;
|
||||
|
||||
struct resource {
|
||||
resource()
|
||||
: type(0), name(0), lang(0), codepage(0), RVA(0), size(0), buf(nullptr) {
|
||||
}
|
||||
|
||||
std::string type_str;
|
||||
std::string name_str;
|
||||
std::string lang_str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user