VirtualBox

Changeset 103684 in vbox for trunk/src/VBox/Runtime/r0drv


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r103168 r103684  
    145145    size_t              cPages;
    146146    /** Array of struct page pointers. (variable size) */
    147     struct page        *apPages[1];
     147    RT_FLEXIBLE_ARRAY_EXTENSION
     148    struct page        *apPages[RT_FLEXIBLE_ARRAY];
    148149} RTR0MEMOBJLNX;
    149150/** Pointer to the linux memory object. */
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