L
Lloyd Dupont
Is it just me or Microsoft, DevelopMentor and others were taken over by
Of course everyone think perf is important but suddenly to wrong the Troll
they say it doesn't matter.
I don't get it either ;-)
And no need to go for such statment, the truth is simply: .NET is good and
performs well ;-)
1st, if anything, MS is certainly NOT dropping its support for C++
(although, personally, I can't care less), read that:
..... uh.. CodeProject down.. anyway, they have made huge commitment to C++
and it shows in .NET 2.0!
2nd, about your sprintf exemple, tss... again it's very much blind linux
attitude (read uninformed MS hating). what about reading MSDN documentation
to know why?
I copied / paste it for you below
Security Remarks
The first argument, buffer, must be large enough to hold the formatted
version of format and the trailing NULL ('\0') character otherwise a buffer
overrun may occur.
This can lead to a denial of service attack against the application if an
access violation occurs, or in the worst case, allow an attacker to inject
executable code into your process.
This is especially true if buffer is a stack-based buffer.
Be also aware of the dangers of a user or application providing format as a
variable. The following example is dangerous because the attacker may set
szTemplate to "%90s%10s" which will create a 100-byte string:
void test(char *szTemplate,char *szData1, char *szData2) {
char buf[BUFFER_SIZE];
sprintf(buf,szTemplate,szData1,szData2);
}Consider using _snprintf instead, or consider using an appropriate
strsafe.h function.
For more information, see Safe String Functions.
It's just Troll effect ;-)marketing people. One argues that some programs don't need speed (since
when
I wonder). The other is argues that you need ". you need a real-time
operating system.." for resolution of seconds. Windows is pretty good
system
Of course everyone think perf is important but suddenly to wrong the Troll
they say it doesn't matter.
I don't get it either ;-)
And no need to go for such statment, the truth is simply: .NET is good and
performs well ;-)
Ha.. I see, you've been taken over by linux people ;-)if you do not use s..ty .Net, Java etc., it is not unheard of a program on
Windows measuring their operations in millisecond and even microseconds
(.Net
excluded). Maybe Microsoft engineers should pull their heads out of .Net
ass
and try to save the great system they have. Yes it is true Microsoft is
dropping their support for ANSI C++ (see "sprtintf depreciated" warning in
VC8) - too bad I really liked Windows last 10 years or so. Oh well there's
always Linux.
1st, if anything, MS is certainly NOT dropping its support for C++
(although, personally, I can't care less), read that:
..... uh.. CodeProject down.. anyway, they have made huge commitment to C++
and it shows in .NET 2.0!
2nd, about your sprintf exemple, tss... again it's very much blind linux
attitude (read uninformed MS hating). what about reading MSDN documentation
to know why?
I copied / paste it for you below
Security Remarks
The first argument, buffer, must be large enough to hold the formatted
version of format and the trailing NULL ('\0') character otherwise a buffer
overrun may occur.
This can lead to a denial of service attack against the application if an
access violation occurs, or in the worst case, allow an attacker to inject
executable code into your process.
This is especially true if buffer is a stack-based buffer.
Be also aware of the dangers of a user or application providing format as a
variable. The following example is dangerous because the attacker may set
szTemplate to "%90s%10s" which will create a 100-byte string:
void test(char *szTemplate,char *szData1, char *szData2) {
char buf[BUFFER_SIZE];
sprintf(buf,szTemplate,szData1,szData2);
}Consider using _snprintf instead, or consider using an appropriate
strsafe.h function.
For more information, see Safe String Functions.