3 ms·
I'll give you a tautological and useless answer. I hope you don't mind. A parser is a kind of interpreter, where code is executed based on external input. When
by alserio 4y ago
I'll give you a tautological and useless answer. I hope you don't mind.
A parser is a kind of interpreter, where code is executed based on external input. When user input controls how code is executed you have opened the doors of hell: it's hard to guarantee that all of the possible executions are safe.
- tester756 4y agoBut why? Parsers executes safe code fragments in order based on the input How safe operations result in unsafe results? I'm not talking about side channels here.
- alserio 4y agoWell, I see two ways it might be: the operations are not really safe in an absolute sense or the operations composition does not preserve safety. Or you could say that an operation can be safe in a context but ops+context does not compose as well as we would like to guarantee the preservation of safety
- toast0 4y agoHere's an even more tautological answer. You can't misparse input unless you're parsing input. That's why parsers have trouble with parsing input.
- alserio 4y agotrue