VirtualBox

Changeset 86498 in vbox for trunk/src


Ignore:
Timestamp:
Oct 8, 2020 5:00:21 PM (4 years ago)
Author:
vboxsync
Message:

VBoxSVC/MachineImpl.cpp: Fixed use-after-free problem in Machine::i_prepareSaveSettings where a Utf8Str::printf was fed its old value as one of the format argument. bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r86294 r86498  
    96059605            {
    96069606                /* get the path to old settings file in renamed directory */
     9607                Assert(mData->m_strConfigFileFull == configFile);
    96079608                configFile.printf("%s%c%s",
    96089609                                  newConfigDir.c_str(),
    96099610                                  RTPATH_DELIMITER,
    9610                                   RTPathFilename(configFile.c_str()));
     9611                                  RTPathFilename(mData->m_strConfigFileFull.c_str()));
    96119612                if (!fSettingsFileIsNew)
    96129613                {
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