VirtualBox

Changeset 71002 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Feb 13, 2018 7:04:56 PM (7 years ago)
Author:
vboxsync
Message:

iosmakerimport.cpp: Fixed assertion in boot catalog parsing code for old RHEL5 images. Just consider all zero entries as terminal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/isomakerimport.cpp

    r70395 r71002  
    24482448        uint8_t const *pbEntry  = &pThis->abBuf[iEntry * ISO9660_ELTORITO_ENTRY_SIZE];
    24492449        uint8_t const  idHeader = *pbEntry;
     2450
     2451        /* KLUDGE ALERT! Older ISO images, like RHEL5-Server-20070208.0-x86_64-DVD.iso lacks
     2452                         terminator entry. So, quietly stop with an entry that's all zeros. */
     2453        if (   idHeader == ISO9660_ELTORITO_BOOT_INDICATOR_NOT_BOOTABLE /* 0x00 */
     2454            && iEntry != 1 /* default */
     2455            && ASMMemIsZero(pbEntry, ISO9660_ELTORITO_ENTRY_SIZE))
     2456            return rc;
     2457
    24502458        if (   iEntry == 1 /* default*/
    24512459            || idHeader == ISO9660_ELTORITO_BOOT_INDICATOR_BOOTABLE
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