VirtualBox

vbox的更動 44940 路徑 trunk/src/VBox/Storage/QCOW.cpp


忽略:
時間撮記:
2013-3-6 下午10:12:24 (12 年 以前)
作者:
vboxsync
訊息:

Storage/QED,QCOW: Fix backing filename handling (caused crashes and other weird behavior)

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Storage/QCOW.cpp

    r44529 r44940  
    10041004
    10051005        if (pImage->pszBackingFilename)
     1006        {
    10061007            RTMemFree(pImage->pszBackingFilename);
     1008            pImage->pszBackingFilename = NULL;
     1009        }
    10071010
    10081011        qcowL2TblCacheDestroy(pImage);
     
    11251128            {
    11261129                /* Load backing filename from image. */
    1127                 pImage->pszFilename = (char *)RTMemAllocZ(pImage->cbBackingFilename + 1); /* +1 for \0 terminator. */
    1128                 if (pImage->pszFilename)
     1130                pImage->pszBackingFilename = (char *)RTMemAllocZ(pImage->cbBackingFilename + 1); /* +1 for \0 terminator. */
     1131                if (pImage->pszBackingFilename)
    11291132                {
    11301133                    rc = vdIfIoIntFileReadSync(pImage->pIfIo, pImage->pStorage,
     
    23782381    AssertPtr(pImage);
    23792382    if (pImage)
    2380         if (pImage->pszFilename)
     2383        if (pImage->pszBackingFilename)
    23812384            *ppszParentFilename = RTStrDup(pImage->pszBackingFilename);
    23822385        else
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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