VirtualBox

Changeset 81194 in vbox


Ignore:
Timestamp:
Oct 9, 2019 7:47:36 PM (5 years ago)
Author:
vboxsync
Message:

Devices/Graphics/DevVGA-SVGA.cpp: Improve check, bugref:9535

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r81031 r81194  
    35853585            STAM_REL_COUNTER_INC(&pSVGAState->StatFifoErrors);
    35863586            LogRelMax(8, ("vmsvgaFIFOLoop: Misaligned offCurrentCmd=%#x?\n", offCurrentCmd));
    3587             offCurrentCmd = ~UINT32_C(3);
     3587            offCurrentCmd &= ~UINT32_C(3);
    35883588        }
    35893589
     
    43424342 */
    43434343#  define VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(a_cbMin) \
    4344      do { AssertMsgBreak(pHdr->size >= (a_cbMin), ("size=%#x a_cbMin=%#zx\n", pHdr->size, (size_t)(a_cbMin))); \
     4344     if (1) { \
     4345          AssertMsgBreak(pHdr->size >= (a_cbMin), ("size=%#x a_cbMin=%#zx\n", pHdr->size, (size_t)(a_cbMin))); \
    43454346          RT_UNTRUSTED_VALIDATED_FENCE(); \
    4346      } while (0)
     4347     } else do {} while (0)
    43474348                    switch ((int)enmCmdId)
    43484349                    {
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