Changeset 78191 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Apr 18, 2019 12:20:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h
r78190 r78191 126 126 { 127 127 pState->rcUnpack = VERR_BUFFER_OVERFLOW; 128 return SIZE_MAX;128 return ~(size_t)0; 129 129 } 130 130 … … 141 141 { \ 142 142 size_t cchStr = crUnpackAcccessChkStrUpdate((a_pState), (a_pszStr), &int_cbAccessVerified); \ 143 if (RT_UNLIKELY(cchStr == SIZE_MAX)) \143 if (RT_UNLIKELY(cchStr == ~(size_t)0)) \ 144 144 return; \ 145 145 } \ … … 165 165 do \ 166 166 { \ 167 if (RT_UNLIKELY((a_pState)->cbUnpackDataLeft < ( delta))) \167 if (RT_UNLIKELY((a_pState)->cbUnpackDataLeft < (size_t)(delta))) \ 168 168 { \ 169 169 (a_pState)->rcUnpack = VERR_BUFFER_OVERFLOW; \
Note:
See TracChangeset
for help on using the changeset viewer.