Changeset 36214 in vbox
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestPropertySvc.h
r36213 r36214 115 115 * RDONLYGUEST, RDONLYHOST and RDONLY 116 116 */ 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. */ 117 123 enum { MAX_FLAGS_LEN = sizeof("TRANSIENT_RESET, RDONLYGUEST") }; 118 124 … … 152 158 unsigned i = 0; 153 159 for (; i < RT_ELEMENTS(s_aFlagList); ++i) 154 {155 160 if (RTStrNICmp(pcszNext, flagName(s_aFlagList[i]), 156 161 flagNameLen(s_aFlagList[i])) == 0) 157 162 break; 158 }159 163 if (RT_ELEMENTS(s_aFlagList) == i) 160 164 rc = VERR_PARSE_ERROR; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp
r36179 r36214 107 107 * guest property using the TRANSIENT and TRANSIENT_RESET flags. 108 108 */ 109 /** @todo r=bird: TRANSIENT_RESET should imply TRANSIENT. See 110 * MAX_FLAGS_LEN... */ 109 111 rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT,TRANSIENT_RESET"); 110 112 if (rc == VERR_PARSE_ERROR) … … 113 115 * use the "TRANSIENT" flag -- better than nothing :-). */ 114 116 rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT"); 117 /** @todo r=bird: Remember that the host doesn't support 118 * this. */ 115 119 } 116 120 }
Note:
See TracChangeset
for help on using the changeset viewer.