VirtualBox

Changeset 108530 in vbox for trunk/src


Ignore:
Timestamp:
Mar 12, 2025 9:51:13 AM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167920
Message:

bldprogs/VBoxEditElf: Write the zero terminator and write the result back to the file, bugref:10874

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxEditElf.cpp

    r108518 r108530  
    278278    }
    279279
    280     memcpy(pbStr, pszRunpath, cchNewRunpath);
    281     rc = RTFileReadAt(hFileElf, offStrTab, pbStrTab, cbStrTab, NULL);
     280    memcpy(pbStr, pszRunpath, cchNewRunpath + 1);
     281    rc = RTFileWriteAt(hFileElf, offStrTab, pbStrTab, cbStrTab, NULL);
    282282    RTMemFree(pbStrTab);
    283283    if (RT_FAILURE(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