diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2012-06-04 13:28:16 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-07-03 12:28:45 -0700 |
commit | 5fb178ee43fbc364b150fe6c6f0f79e8d8b0b179 (patch) | |
tree | 7077dd788ed43ef2314369536a042de7604d572a /src/glx/tests | |
parent | 1853f467c6c0a6e7636b40fe99e1195c43b847aa (diff) |
glx/tests: Fix off-by-one error in allocating extension string buffer
NOTE: This is a candidate for the 8.0 release branch.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50621
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=418161
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Markus Oehme <oehme.markus@gmx.de>
Diffstat (limited to 'src/glx/tests')
-rw-r--r-- | src/glx/tests/fake_glx_screen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/tests/fake_glx_screen.h b/src/glx/tests/fake_glx_screen.h index 2151522597..6aa6cb68fe 100644 --- a/src/glx/tests/fake_glx_screen.h +++ b/src/glx/tests/fake_glx_screen.h @@ -40,7 +40,7 @@ public: this->display = glx_dpy; this->dpy = (glx_dpy != NULL) ? glx_dpy->dpy : NULL; - this->serverGLXexts = new char[strlen(ext)]; + this->serverGLXexts = new char[strlen(ext) + 1]; strcpy((char *) this->serverGLXexts, ext); } |