Hochfrequenz / mig_ahb_utility_stack

MIG AHB Utility Stack (MAUS): A Script to Match the Message Implementation Guide (MIG) with the Anwendungshandbuch (AHB)
MIT License
2 stars 0 forks source link

Code Scanning Alert: Inefficient Regular Expression #229

Open hf-kklein opened 1 year ago

hf-kklein commented 1 year ago

https://github.com/Hochfrequenz/mig_ahb_utility_stack/blob/bfcaa6a1cee694ac14658db65ff7e6f9f22faf39/src/maus/reader/etree_element_helpers.py#L29-L29

This part of the regular expression may cause exponential backtracking on strings starting with 'A:9:9[9:9=' and containing many repetitions of '009:9='.

hf-kklein commented 1 year ago

No priority as we trust the input.