why shldnt one use c functions such strcmp, stricmp in kernel mode?
venkat

Re: c funcs by Mark

Mark
Thu Jul 15 06:06:16 CDT 2004

You can use some of the c runtime functions. The use of the string functions
is currently deprecated and you are strongly urged to use the equivalents
from the string safe library package ntstrsafe.lib.

--

=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com


"Venkat" <Venkat@discussions.microsoft.com> wrote in message
news:BE16FCB6-D69C-4697-9CAA-C7823E30834A@microsoft.com...
> why shldnt one use c functions such strcmp, stricmp in kernel mode?
> venkat



Re: c funcs by Doron

Doron
Thu Jul 15 09:29:31 CDT 2004

because alot of these functions do not take the buffer length as an input
parameter and will happily touch invalid pointers if the strings are not
fully and correctly formed. use ntstrsafe.h instead.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Venkat" <Venkat@discussions.microsoft.com> wrote in message
news:BE16FCB6-D69C-4697-9CAA-C7823E30834A@microsoft.com...
> why shldnt one use c functions such strcmp, stricmp in kernel mode?
> venkat