Commit 0d8cf038 authored by Raphael Junqueira's avatar Raphael Junqueira Committed by Alexandre Julliard

Fix allocated buffer size to avoid buffer overflow.

parent e2c5359e
......@@ -769,7 +769,7 @@ const GLubyte * internal_glGetString(GLenum name) {
return NULL;
} else {
size_t len = strlen(GL_Extensions);
internal_gl_extensions = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
internal_gl_extensions = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len + 2);
while (*GL_Extensions != 0x00) {
const char* Start = GL_Extensions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment