fix sanity check
This commit is contained in:
parent
a4e5679c7b
commit
a9da701e51
1 changed files with 3 additions and 3 deletions
|
|
@ -239,9 +239,7 @@ impl<'a> DexFileReader<'a> {
|
|||
self.header.class_defs_off, self.header.class_defs_size
|
||||
)))
|
||||
}
|
||||
MapItemType::CallSiteIdItem => todo!(),
|
||||
MapItemType::MethodHandleItem => todo!(),
|
||||
MapItemType::MapList if item.offset != self.header.map_off || item.size != 0 => {
|
||||
MapItemType::MapList if item.offset != self.header.map_off || item.size != 1 => {
|
||||
return Err(Error::InconsistantStruct(format!(
|
||||
"Inconsistant MapList Mapping info found in map_list: {item:x?}, \
|
||||
header.map_list_off: 0x{:x}",
|
||||
|
|
@ -249,6 +247,8 @@ impl<'a> DexFileReader<'a> {
|
|||
)))
|
||||
}
|
||||
/*
|
||||
MapItemType::CallSiteIdItem => todo!(),
|
||||
MapItemType::MethodHandleItem => todo!(),
|
||||
MapItemType::TypeList => todo!(),
|
||||
MapItemType::AnnotationSetRefList => todo!(),
|
||||
MapItemType::AnnotationSetItem => todo!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue