VirtualBox

Changeset 36214 in vbox


Ignore:
Timestamp:
Mar 8, 2011 6:33:38 PM (14 years ago)
Author:
vboxsync
Message:

GuestProps: r=bird: Another Q for Michael.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestPropertySvc.h

    r36213 r36214  
    115115 * RDONLYGUEST, RDONLYHOST and RDONLY
    116116 */
     117/** @todo r=bird: Michael, where to do enforce the "only every return one of
     118 *        R*"? I cannot see it? */
     119/** @todo r=bird: Should TRANSIENT_RESET imply TRANSIENT or not? See
     120 *        VBoxServicePropCache.cpp.  You've introduced (or maybe just made an
     121 *        existing one more obvious - see abouve) a buffer overrun in
     122 *        writeFlags now. */
    117123enum { MAX_FLAGS_LEN =   sizeof("TRANSIENT_RESET, RDONLYGUEST") };
    118124
     
    152158            unsigned i = 0;
    153159            for (; i < RT_ELEMENTS(s_aFlagList); ++i)
    154             {
    155160                if (RTStrNICmp(pcszNext, flagName(s_aFlagList[i]),
    156161                               flagNameLen(s_aFlagList[i])) == 0)
    157162                    break;
    158             }
    159163            if (RT_ELEMENTS(s_aFlagList) == i)
    160164                rc = VERR_PARSE_ERROR;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp

    r36179 r36214  
    107107                 * guest property using the TRANSIENT and TRANSIENT_RESET flags.
    108108                 */
     109                /** @todo r=bird: TRANSIENT_RESET should imply TRANSIENT. See
     110                 *        MAX_FLAGS_LEN... */
    109111                rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT,TRANSIENT_RESET");
    110112                if (rc == VERR_PARSE_ERROR)
     
    113115                     * use the "TRANSIENT" flag -- better than nothing :-). */
    114116                    rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT");
     117                    /** @todo r=bird: Remember that the host doesn't support
     118                     * this. */
    115119                }
    116120            }
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