MozillaSecurity / funfuzz

A collection of fuzzers in a harness for testing the SpiderMonkey JavaScript engine.
Mozilla Public License 2.0
631 stars 115 forks source link

[funfuzz] "I don't know what to do with a core file when logPrefix is null" shown due to str/unicode confusion #180

Closed nth10sd closed 6 years ago

nth10sd commented 6 years ago

This check in subprocesses.py is invalid when the logPrefix is set but is of the type unicode:

useLogFiles = isinstance(logPrefix, str)

Changing this check from str to ("".__class__, u"".__class__) (via here) seems to make it work fine.