Mesa (master): mesa: Fix allocation size of extension_indices array.

Vinson Lee vlee at kemper.freedesktop.org
Wed Apr 6 16:15:35 PDT 2011


Module: Mesa
Branch: master
Commit: 8800a798d1f0cc3453d01ceaf2f4972d3ae75baa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8800a798d1f0cc3453d01ceaf2f4972d3ae75baa

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Apr  6 16:13:15 2011 -0700

mesa: Fix allocation size of extension_indices array.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/extensions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 285e08d..e5711f2 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -908,7 +908,7 @@ _mesa_make_extension_string(struct gl_context *ctx)
       return NULL;
    }
 
-   extension_indices = malloc(count * sizeof extension_indices);
+   extension_indices = malloc(count * sizeof(extension_index));
    if (extension_indices == NULL) {
       free(exts);
       free(extra_extensions);



More information about the mesa-commit mailing list