First prepare a bunch of tex input, I suggest the top 50 of oiwiki:
const test = require('./oiwiki-231222.json')
const fs = require('fs');
// write each test case to a file in a subdirectory
for (const [i, t] of test.entries()) {
fs.writeFileSync(`./seed/${i}.txt`, t.text);
if (i > 50) {
break;
}
}
Usage
First prepare a bunch of tex input, I suggest the top 50 of oiwiki:
Then build and fuzz
To minimize test case, using afl-tmin