VirtualBox

Ignore:
Timestamp:
Jul 12, 2018 9:06:33 PM (7 years ago)
Author:
vboxsync
Message:

*: Made RT_UOFFSETOF, RT_OFFSETOF, RT_UOFFSETOF_ADD and RT_OFFSETOF_ADD work like builtin_offsetof() and require compile time resolvable requests, adding RT_UOFFSETOF_DYN for the dynamic questions that can only be answered at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r70196 r73097  
    12381238# endif
    12391239        /* Figure the size of the current request. */
    1240         size_t cbCur = RT_OFFSETOF(struct ifreq, ifr_addr)
     1240        size_t cbCur = RT_UOFFSETOF(struct ifreq, ifr_addr)
    12411241                     + SA_LEN(&pCur->ifr_addr);
    12421242        cbCur = RT_MAX(cbCur, sizeof(struct ifreq));
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