Merge pull request #417 from kohnakagawa/fix/empty_fixed_file_version_entry

Fix to parse PE files that have empty fixed_file_version entry
This commit is contained in:
Romain 2020-05-20 16:27:23 +02:00 committed by GitHub
commit 2ed4dd0157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -470,6 +470,10 @@ ResourceVersion ResourcesManager::version(void) const {
}
stream.align(sizeof(uint32_t));
if (!stream.can_read<uint16_t>()) {
VLOG(VDEBUG) << "There is no entry";
return version;
}
{ // First entry
VLOG(VDEBUG) << "Parsing first entry";