KATRIN-Experiment / Kassiopeia

Simulation of electric and magnetic fields and particle tracking
https://katrin-experiment.github.io/Kassiopeia/index.html
Other
47 stars 29 forks source link

Fix: Unexpected closing tag caused segfaults #112

Closed 2xB closed 2 months ago

2xB commented 4 months ago

E.g. the following minimal XML file caused segmentation faults:

</if>

This is fixed by throwing an appropriate error instead.

Most of the code is just copied from the error thrown in a similar case directly below. The line generating that error message was also what caused the segmentation fault.