VirtualBox

Changeset 71318 in vbox for trunk


Ignore:
Timestamp:
Mar 14, 2018 12:03:30 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9140 Vbox no longer crashes when an invalid ova file is given.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp

    r70805 r71318  
    123123    /* Acquire appliance and certificate: */
    124124    CAppliance *pAppliance = m_pApplianceWidget->appliance();
     125    /* Check if pAppliance is alive. If not just return here. This
     126       prevents crashes when an invalid ova file is supllied: */
     127    if (!pAppliance)
     128    {
     129        if (wizard())
     130            wizard()->reject();
     131        return;
     132    }
    125133    CCertificate certificate = pAppliance->GetCertificate();
    126134    if (certificate.isNull())
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