3 ms·
https://en.wikipedia.org/wiki/Taint_checking https://en.wikipedia.org/wiki/Taint_checking
by gst 12y ago
https://en.wikipedia.org/wiki/Taint_checking https://en.wikipedia.org/wiki/Taint_checking
- _pmf_ 12y agoOf note is that Perl had this since at least 1998. See http://gunther.web66.com/FAQS/taintmode.html http://gunther.web66.com/FAQS/taintmode.html But of course we just laugh about Perl and pat ourself on our backs with our safe new languages because we clearly know much more than those anachronistic neckbeards.
- Silhouette 12y agoBut of course we just laugh about Perl and pat ourself on our backs with our safe new languages And there is some justification for that: if those "safe new languages" are doing the type checking at compile time, that is better than only finding out you have a safety issue when you fail at run time.
- brohee 12y agoThe issue I have with Perl taint checking is that data is untainted by a group match within a regexp. It's not explicit enough and it's easy enough to find legitimate code with accidental untainting of dangerous data. Ruby requires an explicit untaint call, and IMHO it's the right way to go.
- deckiedan 12y agoAh, "Taint" was the missing magic word I couldn't figure out to aid my google-fu (well, duckduckgofu...). Thanks for that - there is a lot of interesting stuff out there. :-)