bmwcarit / Emma

Emma Memory and Mapfile Analyser. (Repo marked private after security audit. Contact Marian Kneer for details)
GNU General Public License v3.0
4 stars 0 forks source link

Regex for GHS map files broken #42

Closed holzkohlengrill closed 4 years ago

holzkohlengrill commented 4 years ago

Description

The regex'es for the GHS parser match Global Symbols which they should not. ## Observed behaviour

It should not match for example:

                  00000000+000000 D GetWriteBlock..libs.some.global..symbol.blah.blub.

but currently it does.

I figured this out since the address translation failed warning appeared. From the FQN it seems that only the section regex might be affected.

Possibly we can stop if a line starts with Global Symbols minus leading spaces. However we should check if we always can rely on this order: Sections Summary -> Object Summary -> Global Symbols