VirtualBox

Changeset 21507 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 10, 2009 11:54:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49957
Message:

GuestProperties/service.cpp: r=bird: todo that *needs* fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r20894 r21507  
    938938        || RT_FAILURE(paParms[0].getPointer ((void **) &pszPatterns, &cchPatterns))  /* patterns */
    939939        || pszPatterns[cchPatterns - 1] != '\0'  /* The patterns string must be zero-terminated */
     940/** @todo r=bird: What if cchPatterns is 0? pszPatterns is NULL then, and if it wasn't, you'd access memory
     941 * before what it points to. Add a getString() method? Please, check *all* similar cases.
     942 * Remember that the guest is not trusted. :-) */
    940943        || RT_FAILURE(paParms[1].getUInt64 (&u64Timestamp))  /* timestamp */
    941944        || RT_FAILURE(paParms[2].getPointer ((void **) &pchBuf, &cchBuf))  /* return buffer */
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