mirror of https://github.com/google/oss-fuzz.git
lxml: catch highest exception (#7550)
fuzz_html_parse can also throw SerialisationError: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46579 Forces the fuzzers to catch highest lxml exception for now.
This commit is contained in:
parent
05be069314
commit
845b915110
|
@ -26,7 +26,7 @@ def TestOneInput(data):
|
|||
root = et.HTML(data)
|
||||
if root != None:
|
||||
et.tostring(root)
|
||||
except et.XMLSyntaxError:
|
||||
except et.LxmlError:
|
||||
None
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ def TestOneInput(data):
|
|||
|
||||
handler = sax.ElementTreeContentHandler()
|
||||
sax.ElementTreeProducer(parsed, handler).saxify()
|
||||
except et.XMLSyntaxError:
|
||||
except et.LxmlError:
|
||||
None
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue