VirtualBox

Changeset 55139 in vbox


Ignore:
Timestamp:
Apr 8, 2015 2:32:33 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: UIFramebuffer: validate NotifyUpdateImage parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r55133 r55139  
    520520    , m_pMachineView(NULL)
    521521    , m_iWinId(0)
    522     , m_fUpdatesAllowed(true)
     522    , m_fUpdatesAllowed(false)
    523523    , m_fUnused(false)
    524524    , m_fAutoEnabled(false)
     
    831831        return E_FAIL;
    832832    }
    833 
    834     /* Directly update m_image: */
    835     if (m_fUpdatesAllowed)
     833    /* Directly update m_image if update fits: */
     834    if (   m_fUpdatesAllowed
     835        && uX + uWidth <= (ULONG)m_image.width()
     836        && uY + uHeight <= (ULONG)m_image.height())
    836837    {
    837838        /* Copy to m_image: */
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