VirtualBox

Changeset 36481 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 31, 2011 2:11:14 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70879
Message:

Main: Sanitize incoming VRDP USB descriptor strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r36439 r36481  
    76727672    while (cbDevList >= 2 && e->oNext)
    76737673    {
     7674        /* Sanitize incoming strings in case they aren't valid UTF-8. */
     7675        if (e->oManufacturer)
     7676            RTStrPurgeEncoding((char *)e + e->oManufacturer);
     7677        if (e->oProduct)
     7678            RTStrPurgeEncoding((char *)e + e->oProduct);
     7679        if (e->oSerialNumber)
     7680            RTStrPurgeEncoding((char *)e + e->oSerialNumber);
     7681
    76747682        LogFlowThisFunc(("vendor %04X, product %04X, name = %s\n",
    76757683                          e->idVendor, e->idProduct,
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