Changeset 102716 in vbox
- Timestamp:
- Dec 27, 2023 5:52:20 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r101377 r102716 438 438 int rc = VINF_SUCCESS; 439 439 440 /** @todo r=bird: This is just asking for trouble with long names, esp. when 441 * domain names are included. The max property name limit is 64 characters, 442 * so it is really easy to run into the limit here. E.g. 443 * "/VirtualBox/GuestInfo/User/Administrator@DGV-W10X64-TEST/UsageState" 444 * is too long and will be rejected by the host servce (assert in strict builds) 445 * as Dmitrii just observed. 446 * 447 * A slightly more managable design here would've been to use the user ID rather 448 * than the user name. Not sure how this would work for domains, though, these 449 * can probably be pretty long as well. Any numeric/fixed-sized IDs for domains? 450 * Since these mistakes have been made already, perhaps use the UID as a 451 * fallback? 452 * 453 * Also, since we're working a max length limit here, WTF do we use 454 * RTStrAPrintf? We could use a fixed buffer size and RTStrPrintf2 and detect 455 * the problem here before we even get to the host side. 456 */ 440 457 char *pszName; 441 458 if (pszDomain)
Note:
See TracChangeset
for help on using the changeset viewer.