Commit Graph

2 Commits

Author SHA1 Message Date
Peter Foley dfaf20a5e2
Avoid calling strlen on uninitialized data (#6747)
GetINCHIfromINCHI calls strlen on szOptions, which leads to undefined behavior as it's not a valid null-terminated byte string.
Explicitly NULL out the char* to avoid this.
2021-11-02 21:41:37 +00:00
Ravi Jotwani 81a82c35ab
[inchi] Initial Integration (#4222)
* added inchi_input_fuzzer

* converted fuzzer to C, removed const_cast<char *>

* place szINCHISource in heap rather than stack, reduce size of szINCHIKey

* disable ubsan and update todo

* Update InChI with new URL and contact address.

Co-authored-by: Michael Jezierny <mtjz@google.com>
2020-09-11 11:03:44 -07:00