VirtualBox

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


Ignore:
Timestamp:
Feb 20, 2024 9:06:22 AM (12 months ago)
Author:
vboxsync
Message:

Guest Control/VBoxService: Fixed reallocation in vgsvcGstCtrlSessionHandleMountPointsEnumCallback(). bugref:10415

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r103415 r103471  
    17381738    if (cch > pCtx->cbAlloc - pCtx->cb - 1 /* Ending terminator */)
    17391739    {
    1740         char *pszNew;
    1741         int rc2 = RTStrRealloc(&pszNew, pCtx->cbAlloc + RT_MAX(_4K, cch));
     1740        int rc2 = RTStrRealloc(&pCtx->psz, pCtx->cbAlloc + RT_MAX(_4K, cch));
    17421741        AssertRCReturn(rc2, rc2);
    1743         pCtx->psz = pszNew;
    17441742    }
    17451743
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