VirtualBox

Changeset 104044 in vbox for trunk/include


Ignore:
Timestamp:
Mar 25, 2024 5:25:29 PM (10 months ago)
Author:
vboxsync
Message:

Linux kernel modules: vboxnetflt: Fix UBSAN warning by switching to flexible array, bugref:10585.

File:
1 edited

Legend:

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

    r103508 r104044  
    356356    uint16_t            cSegsUsed;
    357357    /** Variable sized list of segments. */
    358     INTNETSEG           aSegs[1];
     358    RT_FLEXIBLE_ARRAY_EXTENSION
     359    INTNETSEG           aSegs[RT_FLEXIBLE_ARRAY];
    359360} INTNETSG;
    360361AssertCompileSizeAlignment(INTNETSG, 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