- Timestamp:
- Nov 21, 2008 2:11:03 PM (16 years ago)
- Location:
- trunk/src/VBox/HostServices/GuestProperties
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r14459 r14461 409 409 rc = RTStrValidateEncodingEx(pszValue, RT_MIN(cbValue, (uint32_t) MAX_VALUE_LEN), 410 410 RTSTR_VALIDATE_ENCODING_ZERO_TERMINATED); 411 for (unsigned i = 0; RT_SUCCESS(rc) && i < cbValue; ++i)412 if (pszValue[i] == '*' || pszValue[i] == '?' || pszValue[i] == '|')413 rc = VERR_INVALID_PARAMETER;414 411 if (RT_SUCCESS(rc)) 415 412 LogFlow((" pszValue=%s\n", cbValue > 0 ? pszValue : NULL)); -
trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp
r14458 r14461 419 419 { "Amber", "Caution!", "", false, false, true }, 420 420 { "Green", "Go!", "readonly", true, true, true }, 421 { "Blue", "What on earth... ", "", true, false, true },421 { "Blue", "What on earth...?", "", true, false, true }, 422 422 { "/test/name", "test", "", false, true, false }, 423 423 { "TEST NAME", "test", "", true, true, false }, … … 583 583 sizeof("/test/value\0RDONLYGUEST"), true, true, UINT64_C(999999999999) }, 584 584 { "Green", "Go!\0READONLY", sizeof("Go!\0READONLY"), true, false, 0 }, 585 { "Blue", "What on earth... \0", sizeof("What on earth...\0"), true,585 { "Blue", "What on earth...?\0", sizeof("What on earth...?\0"), true, 586 586 false, 0 }, 587 587 { "Red", "", 0, false, false, 0 }, … … 677 677 { "Amber\0Caution!\0", sizeof("Amber\0Caution!\0") }, 678 678 { "Green\0Go!\0READONLY", sizeof("Green\0Go!\0READONLY") }, 679 { "Blue\0What on earth... \0", sizeof("Blue\0What on earth...\0") },679 { "Blue\0What on earth...?\0", sizeof("Blue\0What on earth...?\0") }, 680 680 { "Red\0\0", sizeof("Red\0\0") }, 681 681 { "Amber\0\0", sizeof("Amber\0\0") },
Note:
See TracChangeset
for help on using the changeset viewer.