3 ms·
How does the Python program know what the random Flow code is supposed to do?
by gruseom 14y ago
How does the Python program know what the random Flow code is supposed to do?
- Dave_Rosenthal 14y agoHmm, that's the tricky bit to explain in a quick post. It has an independent code interpreter that works on the internal representation of the fuzzed code. The output of that internal representation in fed through the Flow compiler (then C++). There is basically a "check([random number])" statement on every other line of code which should be reached in a known order. We compare the check log of the fuzz tester's interpreter to the check log of the compiled code.
- gngeal 14y agoI guess that the Python program generates some sort of internal AST that is either trivial or at least easier to interpret than the fuzz code (enhanced C++, blah...) generated from the AST.