openbabel icon indicating copy to clipboard operation
openbabel copied to clipboard

a use-after-free issue on src/charges/fromfile.cpp#L114.

Open hokein opened this issue 1 year ago • 1 comments

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.

hokein avatar Jul 10 '24 17:07 hokein

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Jul 10 '24 17:07 welcome[bot]