> On 11-Dec-2013 08:37, xxxxx@gmail.com wrote:
> Joe, I know it’s bad, Just want to get the reason why it’s slow, and if
> there’s any alternate way to use the exported function nt!strcpy, we can
> treat it’s the research, can you help…For your research: using so called “standard C library” in unsuitable
environment is a good example of anti-pattern.
http://en.wikipedia.org/wiki/Antipattern
Add to this that using functions like strcpy, strcat, and sprintf (to name
the deadliest offenders) are unsuitable for use in any environment in
which concepts like reliability, robustness, security, stability, and
similar concepts matter. Essentially, there is effectively NO environment
today in which these functions are considered reasonable. There are
environments in which they are used, usually justified by the “we know
these are safe because we are careful” excuse, with said products getting
regular “security updates” because of their vulnerabilities. Or ask
Microsoft, Adobe, Apple, Oracle, Sun/Oracle, etc. about how well this
reasoning has resulted in deadly vulnerabilities.
joe
– pa
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer