VirtualBox

Changeset 101664 in vbox for trunk


Ignore:
Timestamp:
Oct 30, 2023 8:35:47 PM (15 months ago)
Author:
vboxsync
Message:

include/iprt/uint128.h: Make sure the remainder is set to 0 or code not checking the return value might cause an error during building that the remainder might be used uninitialized later on, bugref:10541

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/uint128.h

    r98103 r101664  
    14021402    {
    14031403        if (!pValue2->s.Lo)
     1404        {
     1405            RTUInt128SetZero(pRemainder);
    14041406            return NULL;
     1407        }
    14051408
    14061409        if (pValue2->s.Lo == 1)
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