fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

Invalid parameter type for custom fuzzilli corpus

Open fuzzingfairy opened this issue 2 years ago • 4 comments

I'm getting

typeDecodingError("invalid parameter type") Skipping

when loading the below compiled program using the fuzzilli compiler and --importCorpusAll

function main() {
function foo(x) {
        return x;
}

for(i = 0; i < 1000; i++) {
        foo(i);
}
}
main();

fuzzingfairy avatar Jul 25 '22 21:07 fuzzingfairy

The compiler is currently unmaintained and there have been a number of changes to Fuzzilli's IL so the compiler probably currently produces some invalid FuzzIL programs. Fuzzilli's IL is not yet stable, and we are also making changes to the IL specifically so that compilers have an easier job generating FuzzIL code. But it's not currently clear when we'll have a supported compiler, unfortunately...

saelo avatar Jul 26 '22 13:07 saelo

Got it, Is there any way to generate a custom corpus right now?

ghost avatar Jul 26 '22 15:07 ghost

No, sorry, there's no supported compiler at the moment. :( You could try hacking the existing one or this one though... In any case, the FuzzILTool might be useful when generating FuzzIL programs.

saelo avatar Jul 28 '22 20:07 saelo

Could you make estimate, how much work would it be for a person who is not very familiar with the code? And could you tell us, which was the last known good configuration for the compiler?

rromanw avatar Aug 11 '22 10:08 rromanw

There's now a supported compiler in Fuzzilli: https://github.com/googleprojectzero/fuzzilli/commit/807625f0112df22bfe293aa4d36d67c31c4fb243 it's not yet feature complete but it should be fairly easy to extend.

saelo avatar Feb 22 '23 15:02 saelo