VirtualBox

Ignore:
Timestamp:
Feb 13, 2025 2:35:47 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167511
Message:

Runtime/comon/script/scriptlex.cpp: Fix re-allocating memory for a string literal, bugref:10733

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/script/scriptlex.cpp

    r108065 r108194  
    10291029        /* Increase memory. */
    10301030        size_t cchMaxNew = pThis->cchStrLitMax + 64;
    1031         char *pszNew = NULL;
     1031        char *pszNew = pThis->pszStrLit;
    10321032        rc = RTStrRealloc(&pszNew, cchMaxNew * sizeof(char));
    10331033        if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette