VirtualBox

Changeset 95228 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
Jun 8, 2022 1:07:45 PM (3 years ago)
Author:
vboxsync
Message:

Guest properties: increase property value max len up to 1024, bugref:10185.

File:
1 edited

Legend:

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

    r93891 r95228  
    4141#define GUEST_PROP_MAX_NAME_LEN             64
    4242/** Maximum length for property values. */
    43 #define GUEST_PROP_MAX_VALUE_LEN            128
     43#define GUEST_PROP_MAX_VALUE_LEN            1024
    4444/** Maximum number of properties per guest. */
    4545#define GUEST_PROP_MAX_PROPS                256
     
    9393 *
    9494 * @returns IPRT status code
     95 * @retval  VINF_SUCCESS if guest property value corresponds to all criteria.
     96 * @retval  VERR_TOO_MUCH_DATA if guest property value size exceeds limits.
     97 * @retval  VERR_INVALID_PARAMETER if guest property does not correspond to all other criteria.
    9598 * @param   pszValue  the string to check, must be valid Utf8
    9699 * @param   cbValue   the length in bytes of @a pszValue, including the
     
    104107    /* Zero-length values are possible, however buffer should contain terminating character at least. */
    105108    AssertReturn(cbValue > 0, VERR_INVALID_PARAMETER);
    106     AssertReturn(cbValue < GUEST_PROP_MAX_VALUE_LEN, VERR_INVALID_PARAMETER);
     109    AssertReturn(cbValue < GUEST_PROP_MAX_VALUE_LEN, VERR_TOO_MUCH_DATA);
    107110
    108111    return VINF_SUCCESS;
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