VirtualBox

Changeset 103684 in vbox for trunk/include


Ignore:
Timestamp:
Mar 5, 2024 3:27:02 PM (11 months ago)
Author:
vboxsync
Message:

Linux kernel modules: Fix UBSAN warnings by switching to flexible arrays where possible, bugref:10585.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxTpG.h

    r98103 r103684  
    229229    uint8_t         fHaveLargeArgs;
    230230    uint8_t         abReserved[2];
    231     VTGDESCARG      aArgs[1];
     231    RT_FLEXIBLE_ARRAY_EXTENSION
     232    VTGDESCARG      aArgs[RT_FLEXIBLE_ARRAY];
    232233} VTGDESCARGLIST;
    233234/** Pointer to a VTG argument list descriptor. */
  • trunk/include/VBox/sup.h

    r98103 r103684  
    562562     * entry is updated. If @c u32Mode is SUPGIPMODE_SYNC_TSC the TSC frequency in
    563563     * @c u64CpuHz is copied to all CPUs. */
    564     SUPGIPCPU           aCPUs[1];
     564    RT_FLEXIBLE_ARRAY_EXTENSION
     565    SUPGIPCPU           aCPUs[RT_FLEXIBLE_ARRAY];
    565566} SUPGLOBALINFOPAGE;
    566567AssertCompileMemberAlignment(SUPGLOBALINFOPAGE, u64NanoTSLastUpdateHz, 8);
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