mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-27 04:44:31 +00:00
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:
commit
2ed4dd0157
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user