[wdmaudiodev] BSOD at driver based on MSVAD - check wrong pointer

  • From: kachalovan@xxxxxxxxxxx
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 21 Jan 2013 18:25:35 +0700 (NOVT)

Hello,
my virtal audio microphone driver based on msvad simple sample has BSOD
dump reports from sysdev.microsoft.com. These dumps file after analyzing
gave information that crash occur at
CMiniportWaveCyclicStreamMSVAD::CopyFrom method during write operation at
RtlCopyMemory from internal audio buffer to destination client's buffer. I
suspect that this BSOD possible after unexpected exit or crash of client
applications.

Attempts to detect wrong pointer pointer to destination buffer with using
ProbeForWrite or MmProbeAndLockPages always gave exception result,
included cases than pointer was valid.

How to right check wrong pointer in this case?

Will be happy for suggestions

Best regards,
Alexey


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: