Windows: Fix pdbconv handling of unknown types

This commit is contained in:
Mike Auty
2021-07-29 00:05:36 +01:00
parent deaa86f625
commit fda1512273
@@ -770,7 +770,8 @@ class PdbReader:
consumed = leaf_type.vol.base_type.size
remaining = length - consumed
type_handler, has_name, value_attribute = self.type_handlers.get(leaf_type.lookup(), 'LF_UNKNOWN')
type_handler, has_name, value_attribute = self.type_handlers.get(leaf_type.lookup(),
('LF_UNKNOWN', False, None))
if type_handler in ['LF_FIELDLIST']:
sub_length = remaining