mirror of https://github.com/google/oss-fuzz.git
xmltodict: don't fail on recursion error (#8606)
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51810
This commit is contained in:
parent
f5f39671e2
commit
c51b405969
|
@ -73,7 +73,11 @@ def _gen_value(fdp: atheris.FuzzedDataProvider, depth: int) -> Any:
|
|||
def test_one_input(data: bytes):
|
||||
fdp = atheris.FuzzedDataProvider(data)
|
||||
original = OrderedDict()
|
||||
original[_gen_string(fdp)] = _gen_value(fdp, depth=0)
|
||||
try:
|
||||
original[_gen_string(fdp)] = _gen_value(fdp, depth=0)
|
||||
except RecursionError:
|
||||
# Not interesting
|
||||
return
|
||||
|
||||
try:
|
||||
# Not all fuzz-generated data is valid XML.
|
||||
|
|
Loading…
Reference in New Issue