VirtualBox

Changeset 96950 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Sep 30, 2022 10:19:06 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153861
Message:

Devices/Graphics: Some old Xorg servers apparently in collaboration with
old versions of GNOME can send window coordinates with a negative height
value via SVGA_CMD_UPDATE which ends up as an index array in subsequent
VBox code. Drop such invalid updates in vmsvgaR3UpdateScreen() as is
done similarly elsewhere (and assert(3C) if enabled). bugref:10292

File:
1 edited

Legend:

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

    r96407 r96950  
    16461646{
    16471647    VBVACMDHDR cmd;
     1648
     1649    ASSERT_GUEST_LOGREL_MSG_RETURN(w > 0 && h > 0,
     1650                                   ("vmsvgaR3UpdateScreen: screen %d (%d,%d) %dx%d: Invalid height and/or width supplied.\n",
     1651                                   pScreen->idScreen, x, y, w, h),
     1652                                   VERR_INVALID_PARAMETER);
     1653
    16481654    cmd.x = (int16_t)(pScreen->xOrigin + x);
    16491655    cmd.y = (int16_t)(pScreen->yOrigin + y);
Note: See TracChangeset for help on using the changeset viewer.

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