VirtualBox

Changeset 84848 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 16, 2020 12:17:41 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control/VbglR3: Tried fixing bailing out from starting guest processes with too long environment blocks / arguments / command lines. ​​bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r84842 r84848  
    13141314#define GROW_STR(a_Str, a_cbMax) \
    13151315        pStartupInfo->psz##a_Str = (char *)RTMemRealloc(pStartupInfo->psz##a_Str, \
    1316            RT_MAX(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax)); \
     1316           RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax)); \
    13171317        AssertPtrBreakStmt(pStartupInfo->psz##a_Str, VERR_NO_MEMORY); \
    1318         pStartupInfo->cb##a_Str  = RT_MAX(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax);
     1318        pStartupInfo->cb##a_Str  = RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax);
    13191319
    13201320                /* We can't tell which parameter doesn't fit, so we have to resize all. */
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