VirtualBox

Ignore:
Timestamp:
Jun 15, 2016 4:19:01 PM (8 years ago)
Author:
vboxsync
Message:

Additions/SharedClipboard: fix for ​​​bugref:8363: added check for buffer size. Thanks to Vitali.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp

    r61724 r61725  
    17891789                 * at start of clipboard data
    17901790                 */
    1791                 if( *(PRTUTF16)pvSrc == 0xfeff )
     1791                if( cbSrc >= sizeof(RTUTF16) && *(PRTUTF16)pvSrc == 0xfeff )
    17921792                {
    17931793                    LogRelFlowFunc((" \n"));
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