Why the 'strstr' will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

Strstr sources are in the CRTL source code

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of njtlxm
Sent: Sunday, September 07, 2003 6:49 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Why the ‘strstr’ will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

B缍*癤沧y蓞猱w竮盇?⑹瀀y数獕蓂鵷閖簽瞨y灲捠璻礜嫥叉靣笡z千u﹀jy櫒ザ塣j鳔底}8閥b槽(卜(

I can’t understand what’s your meaning.
----- Original Message -----
From: Jamey Kirby
To: Windows System Software Developers Interest List
Sent: Monday, September 08, 2003 9:58 AM
Subject: [ntdev] RE: Why the ‘strstr’ will cause the system dump?

Strstr sources are in the CRTL source code

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of njtlxm
Sent: Sunday, September 07, 2003 6:49 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Why the ‘strstr’ will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@emgsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com B缍*癤沧y蓞猱w竮盇? ⑹瀀y数獕蓂鵷閖簽瞨y灲捠璻礜嫥叉靣笡z千u﹀jy櫒ザ塣j鳔底}8閥b槽(卜(

Use the NTSTRSAFE.H header file and look at the documentation in VS .Net 2003 and build 3790 of the DDK for Safe String operations. I also have an article in May issue of www.Wd-3.com that might help.


Gary G. Little
Seagate Technologies, LLC
“njtlxm” wrote in message news:xxxxx@ntdev…
I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

He means that this function is from the ‘C’ Runtime Library (CRTL), which is not part of the kernel-mode API.

Read about the Rtl and RtlString functions in the DDK.

Thomas F… Divine
www.rawether.net

“Jamey Kirby” wrote in message news:xxxxx@ntdev…
Strstr sources are in the CRTL source code

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of njtlxm
Sent: Sunday, September 07, 2003 6:49 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Why the ‘strstr’ will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

B缍*癤沧y蓞猱w竮盇? ⑹瀀y数獕蓂鵷閖簽瞨y灲捠璻礜嫥叉靣笡z千u﹀jy櫒ザ塣j鳔底}8閥b槽(卜(

I see . But I can’t get the NTSTRSAFE.H ,who can help me?
----- Original Message -----
From: Thomas F. Divine
Newsgroups: ntdev
To: Windows System Software Developers Interest List
Sent: Monday, September 08, 2003 11:14 AM
Subject: [ntdev] Re: Why the ‘strstr’ will cause the system dump?

He means that this function is from the ‘C’ Runtime Library (CRTL), which is not part of the kernel-mode API.

Read about the Rtl and RtlString functions in the DDK.

Thomas F… Divine
www.rawether.net

“Jamey Kirby” wrote in message news:xxxxx@ntdev…
Strstr sources are in the CRTL source code

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of njtlxm
Sent: Sunday, September 07, 2003 6:49 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Why the ‘strstr’ will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

B缍*癤沧y蓞猱w竮盇? ⑹瀀y数獕蓂鵷閖簽瞨y灲捠璻礜嫥叉靣笡z千u﹀jy櫒ザ塣j鳔底}8閥b槽(卜(

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@emgsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

NTSTRSAFE.H exists in WinDdk\3790\inc\W2k, WXP, and WNET. What is it th at
you cannot get?

Please use plain text.


Gary G. Little
Seagate Technologies, LLC

“njtlxm” wrote in message news:xxxxx@ntdev…
I see . But I can’t get the NTSTRSAFE.H ,who can help me?
----- Original Message -----
From: Thomas F. Divine
Newsgroups: ntdev
To: Windows System Software Developers Interest List
Sent: Monday, September 08, 2003 11:14 AM
Subject: [ntdev] Re: Why the ‘strstr’ will cause the system dump?

He means that this function is from the ‘C’ Runtime Library (CRTL), which is
not part of the kernel-mode API.

Read about the Rtl and RtlString functions in the DDK.

Thomas F… Divine
www.rawether.net

“Jamey Kirby” wrote in message news:xxxxx@ntdev…
Strstr sources are in the CRTL source code

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of njtlxm
Sent: Sunday, September 07, 2003 6:49 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Why the ‘strstr’ will cause the system dump?

I amend the passthru but it cause the system dump.
I open the crash memory file and the windbg shows a error occur when the
program excute the ‘strstr’.The
source code is " pdest = strstr( DnsName, “HTTP” );",The ‘DnsName’ is
defined as ‘char DnsName[200]’

Is there any function in ddk can replace the ‘strstr’?

And how can I see the varible’s value in windbg ?

B?*??y??w??? ??y???y???z?u?jy???j???}8?b?(?(

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@emgsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com