Fix sahara id memory dumping

This commit is contained in:
Bjoern Kerler 2023-03-30 15:29:48 +02:00
parent c0d3947cd9
commit 1d3e89a2af
No known key found for this signature in database
GPG key ID: 52E823BB96A55380

View file

@ -477,7 +477,7 @@ class sahara(metaclass=LogBase):
num_entries = len(ptbldata) // pktsize
partitions = []
for id_entry in range(0, num_entries):
pd = self.parttbl(ptbldata[id_entry * pktsize:(id_entry * pktsize) + pktsize])
pd = self.ch.parttbl(ptbldata[id_entry * pktsize:(id_entry * pktsize) + pktsize])
desc = pd.desc.replace(b"\x00", b"").decode('utf-8')
filename = pd.filename.replace(b"\x00", b"").decode('utf-8')
if dump_partitions and filename not in dump_partitions: