Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
483 B
15 lines
483 B
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use sparesults::{QueryResultsFormat, QueryResultsParser, QueryResultsReader};
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
let parser = QueryResultsParser::from_format(QueryResultsFormat::Json);
|
|
if let Ok(QueryResultsReader::Solutions(solutions)) = parser.read_results(data) {
|
|
for s in solutions {
|
|
if s.is_err() {
|
|
// TODO: avoid infinite loop of errors
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|