VirtualBox

Changeset 84328 in vbox for trunk


Ignore:
Timestamp:
May 18, 2020 1:34:32 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138005
Message:

Storage/VD: ticketref:19579 'VBoxManage internalcommands repairhd' SEGVs with invalid input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VDPlugin.cpp

    r82968 r84328  
    477477DECLHIDDEN(int) vdFindImageBackend(const char *pszBackend, PCVDIMAGEBACKEND *ppBackend)
    478478{
    479     int rc = VINF_SUCCESS;
     479    int rc = VERR_NOT_FOUND;
    480480    PCVDIMAGEBACKEND pBackend = NULL;
    481481
     
    488488        {
    489489            pBackend = g_apBackends[i];
     490            rc = VINF_SUCCESS;
    490491            break;
    491492        }
     
    532533DECLHIDDEN(int) vdFindCacheBackend(const char *pszBackend, PCVDCACHEBACKEND *ppBackend)
    533534{
    534     int rc = VINF_SUCCESS;
     535    int rc = VERR_NOT_FOUND;
    535536    PCVDCACHEBACKEND pBackend = NULL;
    536537
     
    543544        {
    544545            pBackend = g_apCacheBackends[i];
     546            rc = VINF_SUCCESS;
    545547            break;
    546548        }
     
    588590DECLHIDDEN(int) vdFindFilterBackend(const char *pszFilter, PCVDFILTERBACKEND *ppBackend)
    589591{
    590     int rc = VINF_SUCCESS;
     592    int rc = VERR_NOT_FOUND;
    591593    PCVDFILTERBACKEND pBackend = NULL;
    592594
     
    596598        {
    597599            pBackend = g_apFilterBackends[i];
     600            rc = VINF_SUCCESS;
    598601            break;
    599602        }
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