Changeset 70601 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Timestamp:
- Jan 16, 2018 4:26:58 PM (7 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_glsl.c
r69500 r70601 179 179 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteProgramsARB(GLsizei n, const GLuint * programs) 180 180 { 181 GLuint *pLocalProgs = (GLuint *) crAlloc(n * sizeof(GLuint));181 GLuint *pLocalProgs; 182 182 GLint i; 183 184 if (n >= UINT32_MAX / sizeof(GLuint)) 185 { 186 crError("crServerDispatchDeleteProgramsARB: parameter 'n' is out of range"); 187 return; 188 } 189 190 pLocalProgs = (GLuint *)crAlloc(n * sizeof(GLuint)); 191 183 192 if (!pLocalProgs) { 184 193 crError("crServerDispatchDeleteProgramsARB: out of memory"); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_lists.c
r69390 r70601 230 230 crServerDispatchCallLists( GLsizei n, GLenum type, const GLvoid *lists ) 231 231 { 232 if (n >= UINT32_MAX / sizeof(GLuint)) 233 { 234 crError("crServerDispatchCallLists: parameter 'n' is out of range"); 235 return; 236 } 237 232 238 #ifndef VBOX_WITH_CR_DISPLAY_LISTS 233 239 if (!cr_server.sharedDisplayLists) { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_texture.c
r69500 r70601 200 200 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteTextures( GLsizei n, const GLuint *textures) 201 201 { 202 GLuint *newTextures = (GLuint *) crAlloc(n * sizeof(GLuint));202 GLuint *newTextures; 203 203 GLint i; 204 205 if (n >= UINT32_MAX / sizeof(GLuint)) 206 { 207 crError("crServerDispatchDeleteTextures: parameter 'n' is out of range"); 208 return; 209 } 210 211 newTextures = (GLuint *)crAlloc(n * sizeof(GLuint)); 204 212 205 213 if (!newTextures)
Note:
See TracChangeset
for help on using the changeset viewer.