danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
633 stars 224 forks source link

#1014 - solution #1015

Closed david32 closed 4 months ago

david32 commented 5 months ago

Solution is to read the header block in advance, and then iterate through all the data blocks by the file pointers and not using the addresses that were found using the regex search.

Might not be the most beautiful solution. I left the reading of the header block after finilazing in case there is the change in "mapped" variable is crucial, but it might not be needed.

to be honest, it can also be improved by checking that no data group pointer is pointing outside of the file, but that would require further changes.