VirtualBox

Changeset 25250 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Dec 8, 2009 2:33:56 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix offset check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/fakedri_drv.c

    r25248 r25250  
    202202# endif
    203203
     204#ifdef RT_ARCH_AMD64
    204205        {
    205 #ifdef RT_ARCH_AMD64
    206             int64_t offset = (intptr_t)shift;           
    207 #else
    208             int64_t offset = (int64_t)((intptr_t)pStart)-((int64_t)((intptr_t)dlip.dli_saddr)+5);
    209 #endif
    210             if ( (RT_HIDWORD(offset) != 0) && (RT_HIDWORD(offset) != 0xFFFFFFFF)
    211                  && (((int32_t)offset > INT32_MAX) || ((int32_t)offset < INT32_MIN)))
     206            int64_t offset = (intptr_t)shift;
     207
     208            if (offset>INT32_MAX || offset<INT32_MIN)
    212209            {
    213210                crDebug("Can't patch offset is too big.(%s)", psFuncName);
     
    215212            }
    216213        }
     214#endif
    217215
    218216        patch[0] = 0xE9;
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