3 ms·
>I mean, it refers to Postel's law on the top One of the crappiest ideas in CS.
by coldtea 3y ago
>I mean, it refers to Postel's law on the top
One of the crappiest ideas in CS.
- kemotep 3y agoI can imagine several security issues with accepting any kind of input in your program.
- masklinn 3y agoLiterally every language held as a shining example of postel's law is full to the brim with security issues. The literal interpretation of Postel's Law has been considered highly detrimental for 20 years: https://datatracker.ietf.org/doc/html/rfc3117#section-4.5 https://datatracker.ietf.org/doc/html/rfc3117#section-4.5
- sham1 3y agoWell it seems to work for TCP at least, which is where it comes from. Of course it's not the correct approach for everything, but calling it "one of the crappiest ideas in CS" might be a tad harsh. EDIT: Of course there are better ways to be robust than to try to just accept whatever garbage is thrown your way because "be liberal in what you accept." So for example since this is about config files, you could easily just tell the user that their stuff is wrong and tell them how to fix it.