VirtualBox

Changeset 82521 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Dec 9, 2019 3:26:21 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135374
Message:

EFI/Firmware/VBoxFsDxe: Fix a read beyond the of buffer due to the source buffer being shorter than kHFSMaxVolumeNameChars (very very lazy fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_hfs.c

    r82520 r82521  
    282282        s.type = FSW_STRING_TYPE_ISO88591;
    283283        s.size = s.len = kHFSMaxVolumeNameChars;
    284         s.data = "HFS+ volume";
     284        s.data = "HFS+ volume\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Otherwise buffer overflow reading beyond the end of the buffer. */
    285285        status = fsw_strdup_coerce(&vol->g.label, vol->g.host_string_type, &s);
    286286        CHECK(status);
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