openbabel
openbabel copied to clipboard
a use-after-free issue on src/charges/fromfile.cpp#L114.
There is a use-after-free issue on this line: https://github.com/openbabel/openbabel/blob/master/src/charges/fromfile.cpp#L114.
GetAtomID returns a string by value, this temporary will be destroyed at the end of the full expression, which will result in a dangling pointer.
Thanks for opening your first issue here! Be sure to follow the issue template!