scikit-hep / pyhepmc

Easy-to-use Python bindings for HepMC3
https://scikit-hep.org/pyhepmc/
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

attempt to fix segfault #36

Closed HDembinski closed 2 years ago

HDembinski commented 2 years ago

GenCrossSection has an unsafe API which requires one to call certain functions in the right order. There is also no protection against accessing vectors out-of-bounds. The patches applied here fix the most pressing issues in the Python layer.

coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 92.989% when pulling 15b341cb91ef86821daf75a1cbbdf8579872f94a on fix_windows into fcb8da54feb0b970a31ee62f649783f3e322f529 on develop.