Changeset 76793 in vbox for trunk/src/VBox
- Timestamp:
- Jan 13, 2019 8:53:58 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_occlude.c
r69392 r76793 11 11 #include "cr_mem.h" 12 12 13 #if !defined(IN_GUEST) 14 #include "cr_unpack.h" 15 #endif 13 16 14 17 void … … 61 64 } 62 65 63 if (n < 0) { 64 crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, 65 "glDeleteQueriesARB(n < 0)"); 66 return; 67 } 68 69 for (i = 0; i < n; i++) { 66 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint)) 67 { 68 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, 69 "glDeleteQueriesARB: parameter 'n' is out of range"); 70 return; 71 } 72 73 #if !defined(IN_GUEST) 74 if (!DATA_POINTER_CHECK(n * sizeof(GLuint))) 75 { 76 crError("glDeleteQueriesARB: parameter 'n' is out of range"); 77 return; 78 } 79 #endif 80 81 for (i = 0; i < n; i++) { 70 82 if (ids[i]) { 71 83 CROcclusionObject *q = (CROcclusionObject *) -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_bufferobject.c
r76787 r76793 10 10 #include "server_dispatch.h" 11 11 #include "server.h" 12 #include "cr_unpack.h" 12 13 13 14 void * SERVER_DISPATCH_APIENTRY … … 51 52 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteBuffersARB( GLsizei n, const GLuint * buffer ) 52 53 { 54 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 55 { 56 crError("glDeleteBuffersARB: parameter 'n' is out of range"); 57 return; 58 } 59 53 60 crStateDeleteBuffersARB( n, buffer ); 54 61 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_framebuffer.c
r76787 r76793 22 22 #include "server_dispatch.h" 23 23 #include "server.h" 24 #include "cr_unpack.h" 24 25 25 26 void SERVER_DISPATCH_APIENTRY … … 181 182 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers) 182 183 { 183 crStateDeleteFramebuffersEXT(n, framebuffers); 184 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 185 { 186 crError("crStateDeleteFramebuffersEXT: parameter 'n' is out of range"); 187 return; 188 } 189 190 crStateDeleteFramebuffersEXT(n, framebuffers); 184 191 } 185 192 186 193 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers) 187 194 { 188 crStateDeleteRenderbuffersEXT(n, renderbuffers); 195 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 196 { 197 crError("glDeleteRenderbuffersEXT: parameter 'n' is out of range"); 198 return; 199 } 200 201 crStateDeleteRenderbuffersEXT(n, renderbuffers); 189 202 } 190 203
Note:
See TracChangeset
for help on using the changeset viewer.