tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
123 stars 56 forks source link

Segmentation fault when an unknown symbol cannot be found #8

Closed PeterC-DLS closed 10 years ago

PeterC-DLS commented 10 years ago

This is caused by the "<=" operator in line 464 of xraylib-parser. It should be "<" otherwise you end up trying to dereference a pointer pass the end of the array.

tschoonj commented 10 years ago

Thanks for reporting the bug!

Am quite surprised that I never called that function with an unknown symbol :-)