Small bug fixes and cleanups from fuzz testing (#3299)

* fix ossfuzz issue 24074

* fix ossfuzz issue 23896

* switch to throw exceptions when reading ints/floats

* remove extraneous benchmarking code

* change type of AH query

* confirm an invariant while finding rings

* no sense in adding these tests to github

* switch to use fail() instead of failbit
switch to acceptSpaces by default
This commit is contained in:
Greg Landrum
2020-07-22 16:57:31 +02:00
committed by GitHub
parent ef5ec47b1d
commit a9010da8a4
8 changed files with 62 additions and 14 deletions

View File

@@ -365,8 +365,8 @@ ATOM_EQUALS_QUERY *makeAAtomQuery() {
res->setTypeLabel("A");
return res;
}
ATOM_EQUALS_QUERY *makeAHAtomQuery() {
auto *res = rdcast<ATOM_EQUALS_QUERY *>(makeAtomNullQuery());
ATOM_NULL_QUERY *makeAHAtomQuery() {
auto *res = makeAtomNullQuery();
res->setTypeLabel("AH");
return res;
}