Talk:Secure by design
From Wikipedia, the free encyclopedia
Can somebody write a secure version of the example ? —The preceding unsigned comment was added by Drowsy (talk • contribs).
Sure.
#include <stdio.h> int main(void) { char buffer[100] = {0}; puts("What is your name?"); if (scanf("%99s", buffer) == 1) printf("Hello, %s!\n", buffer); return 0; }
I won't add it to the article proper for at least three reasons: There's more than one way to do it; it would break up the flow of the text without adding anything useful to the discussion; and the entire article pretty much needs a total rewrite, if not outright deletion, anyway. The current article is very much a collection of security trivia dumped in with some industry buzzwords. I don't think there's anything encyclopedic to say about "security by design" (which is where this article probably should be, anyhoo). --Quuxplusone 00:54, 14 December 2006 (UTC)