mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 16:58:36 +02:00
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>
(cherry picked from commit 5fb178ee43)
This commit is contained in:
parent
076805c9c2
commit
313d48a110
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue