Re:The Curious Case of the Longevity of C
by tempodox on Tuesday October 03, 2017 @12:56PM
(#15393880)
When you speak of “parsing untrusted data”, do you mean to imply that “parsing trusted data” even exists? I for one would view any and all input as untrusted.
[ Parent
| on HN ]
Re:The Curious Case of the Longevity of C
by moosingin3space on Tuesday October 03, 2017 @01:58PM
(#15394496)
"Trusted data" can exist in theory -- on a closed network where you control all endpoints -- but does not exist in practice (as many devices eventually connect to the Internet or exchange data with Internet-connected computers).
Therefore, it follows that re-writing parsers in memory-safe languages would provide a nice bang-for-buck.
Re:The Curious Case of the Longevity of C
by TheCoelacanth on Tuesday October 03, 2017 @08:30PM
(#15397424)
In some cases, say the parser for an interpreter for a general purpose programming language, I would consider the data "trusted". You are already allowing execution of arbitrary code, so there is nothing to be gained by exploiting the parser.