VirtualBox

Ignore:
Timestamp:
Apr 12, 2017 3:17:58 PM (8 years ago)
Author:
vboxsync
Message:

3D: WDDM: Skipping incorrect input data in VBOXESC_DBGPRINT, bugref:8777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r66507 r66539  
    50065006                    PVBOXDISPIFESCAPE_DBGPRINT pDbgPrint = (PVBOXDISPIFESCAPE_DBGPRINT)pEscapeHdr;
    50075007                    /* ensure the last char is \0*/
    5008                     *((uint8_t*)pDbgPrint + pEscape->PrivateDriverDataSize - 1) = '\0';
    5009                     if (g_VBoxLogUm & VBOXWDDM_CFG_LOG_UM_DBGPRINT)
    5010                         DbgPrint("%s\n", pDbgPrint->aStringBuf);
    5011                     if (g_VBoxLogUm & VBOXWDDM_CFG_LOG_UM_BACKDOOR)
    5012                         LOGREL_EXACT(("%s\n", pDbgPrint->aStringBuf));
     5008                    if (*((uint8_t*)pDbgPrint + pEscape->PrivateDriverDataSize - 1) == '\0')
     5009                    {
     5010                        if (g_VBoxLogUm & VBOXWDDM_CFG_LOG_UM_DBGPRINT)
     5011                            DbgPrint("%s\n", pDbgPrint->aStringBuf);
     5012                        if (g_VBoxLogUm & VBOXWDDM_CFG_LOG_UM_BACKDOOR)
     5013                            LOGREL_EXACT(("%s\n", pDbgPrint->aStringBuf));
     5014                    }
    50135015                }
    50145016                Status = STATUS_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette