and it *was* used improperly a million of times except by geniueses like
heathfield.
I think you argue to argue, and that you have completely no clue about
computer security.
I, personally have found one memory leak in a, what, 30 lines C
snippet you posted here?
I don't think you are in position to have a strong opinion on computer
security.
Take gets() for instance.
Which you'll find in snippets by starting programmers in C or 80s
code, it's 2008 now.
If you find a programmer using gets() in their code nowadays, you can
safely assume they have completely no clue of computer security.
The performance penalty in most cases will be of the order of a few
integer comparisons. This is a non-issue, since many of
the unsecure functions will be thousands or ten thousands of
instructions. Making a few checks and giving a reasonable and
defined outcome for error cases is just error handling.
I agree with that. I'm not sure what mr Heathfield ment.I *FULLY* agree with this. Total BS by Microsofts part.
They are surely insecure:
printf("%s\n",string);
there is NO WAY to limit output in this specific case.
sure there is, if you know how to use printf().
printf("%.Ns\n", string);
or;
printf("%.*s\n", n, string);
Not to speak about gets() or other goodies that the C standard
allowed.
Yeah, don't speak, we've already heard it and it's most likely that
you won't be adding anything to the subject.
Empty talk. If Mr Gates says
2+2 is 4
I will NOT say otherwise even if I risk being treated as a "traitor
that accepts Gates Law".
I would, 2+2 is relative.
It requires the semantics of +, what 2 is (or what '2+2' is, for
example in lisp it's a valid name), base we are working on et cetera.
2+2 could be 10 in base 4.
Heathfield misses all other specs from strcpy_s. His claims are
spurious.
strcpy_s() is unneeded, nor adds anything to computer security.
Perhaps you'd like to elaborate, but I'm sure you cannot do that;
because simply, strcpy_s *does* *not* add anything.
Yes, sure. But a little more difficult than with strcpy isn't it?
Heathfield logic
"Since a perfect world can't exist, a perfect copy function either,
let's keep all buffer overflows and all stupid functions like
strcpy"
Clearly, you are clueless.
As a side note:
I am not mr Heathfields "supporter" or whatever.
I do find mr Heathfields style of replying sometimes pompous and
needesly insulting;
But most of the times rather accurate, unlike your code or your
statements.