PRB: Windows 95 SCSI Miniport Drivers May Generate Bad CDBs

Last reviewed: August 13, 1997
Article ID: Q141205

The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK) for Windows 95

SYMPTOMS

Windows 95 SCSI Miniport drivers may generate ATAPI 12-byte CDBs that contain trailing random characters.

CAUSE

Windows 95 SCSI Miniport drivers that handle ATAPI commands often need to convert the SCSI-2 6-byte or 10-byte CDBs sent by Windows 95 into 12-byte CDBs for their ATAPI hardware. The Input Output Supervisor (IOS) under Windows 95 does not zero out the CDB array in the SCSI Request Block (SRB) before writing data to it. If a driver handling ATAPI commands does not zero out the last unused bytes in the 12-byte CDB before sending the CDB to the controller, unpredictable results may occur.

RESOLUTION

Zero out the unused bytes of the 12-byte CDB before passing it to the controller.


Additional query words: garbage
Keywords : kbprb
Version : 4.0
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 13, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.