diff --git a/pe-parser-library/src/parse.cpp b/pe-parser-library/src/parse.cpp index e7e6982..340c9be 100644 --- a/pe-parser-library/src/parse.cpp +++ b/pe-parser-library/src/parse.cpp @@ -126,7 +126,9 @@ struct parsed_pe_internal { // The mapping of Rich header product id / build number pairs // to strings static const std::map ProductMap = { - {std::make_pair(1, 0), "Imported Functions"}}; + {std::make_pair(static_cast(1), + static_cast(0)), + "Imported Functions"}}; static const std::string kUnknownProduct = ""; @@ -939,7 +941,7 @@ bool getHeader(bounded_buffer *file, pe_header &p, bounded_buffer *&rem) { // read rich header std::uint32_t dword; - std::uint32_t rich_end_signature_offset; + std::uint32_t rich_end_signature_offset = 0; std::uint32_t xor_key; bool found_rich = false;