Re: how can i handle string operation in kernel mini driver?

All of the standard C string functions I use are exported by
ntoskrnl.exe. If their implementations were broken somehow, Microsoft
would have made this loud and clear to the driver community a long time
ago. And if somebody wants to use something that isn’t there, he can
easily find a hundred thousand implementations on the web, not to
mention in the CRT source that ships with VC6/VC7. If that person isn’t
smart enough to adapt the code he finds to follow the few simple rules
necessary to run safely in KM (no large locals, etc.), he shouldn’t be
writing drivers in the first place. This isn’t rocket science guys. :slight_smile:

Mathieu Routhier wrote:

Kernel-side safe?? What’s different in the kernel? Does a piece of code
have the right to crash because it’s user-mode???

Mat

-----Original Message-----
From: Moreira, Alberto [mailto:xxxxx@compuware.com]
Sent: Tuesday, July 15, 2003 11:24 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: how can i handle string operation in kernel mini
driver?

In a compiler that’s attached to a DDK and that has no other objective
besides building drivers, it’d make more sense to me if string.h was
kernel-side safe.

Alberto.

-----Original Message-----
From: Don Burn [mailto:xxxxx@acm.org]
Sent: Tuesday, July 15, 2003 10:26 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: how can i handle string operation in kernel mini
driver?

Of course it should be pointed out that Microsoft now recomends strsafe.h
and its routines over string.h. Unfortunately, it neither has an sscanf or
a strtok
equivalents that the original request asked for.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: “Roddy, Mark”
> To: “Windows System Software Developers Interest List”
> Sent: Tuesday, July 15, 2003 10:03 AM
> Subject: [ntdev] Re: how can i handle string operation in kernel mini
> driver?
>
>
>
>>The c string runtime functions available in the kernel are those available
>>as inline functions in inc\crt\string.h
>>
>>It would be really helpful if the DDK addressed this issue definatively,
>
> as
>
>>it comes up as a FAQ, and for good reasons, and the suggestions for
>
> screwing
>
>>up your driver in order to resolve this issue are rampant on this list.
>>
>>As string.h covers many of the standard c runtime functions, rolling your
>>own is rather silly.
>>
>>
>>=====================
>>Mark Roddy
>>Hollis Technology Solutions
>>www.hollistech.com
>>xxxxx@hollistech.com
>>
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@guillemot.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nryan.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


- Nick Ryan (MVP for DDK)