mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
Fixes crashes when using bad smiles in the cached smiles holders (#3798)
* Fixes #3797 * Update Code/GraphMol/SubstructLibrary/SubstructLibrary.cpp Co-authored-by: Greg Landrum <greg.landrum@gmail.com> * Update test to include positive and negative results Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
This commit is contained in:
committed by
greg landrum
parent
8e6a96e392
commit
9100096102
@@ -125,6 +125,9 @@ void SubSearcher(const ROMol &in_query, const Bits &bits,
|
||||
// returned molecule!
|
||||
const boost::shared_ptr<ROMol> &m = mols.getMol(idx);
|
||||
ROMol *mol = m.get();
|
||||
if(!mol){
|
||||
continue;
|
||||
}
|
||||
if (needs_rings && (!mol->getRingInfo() || !mol->getRingInfo()->isInitialized())) {
|
||||
// I have no idea what happens when symmetrizeSSSR gets called
|
||||
// on the same molecule twice in two threads.
|
||||
|
||||
Reference in New Issue
Block a user