mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 06:50:40 +01:00
68. Fix the GLLibraryVersion string allocation to accomodate for the
terminating \0 character which would otherwise corrupt the malloc heap
(Bugzilla 385, John Dennis).
This commit is contained in:
parent
64f5c2feae
commit
cbf1017a88
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap)
|
|||
if ( atof( string ) > atof( GLServerVersion ) ) {
|
||||
buf = __glXMalloc( __glXStrlen( string )
|
||||
+ __glXStrlen( GLServerVersion )
|
||||
+ 3 );
|
||||
+ 4 );
|
||||
if ( buf == NULL ) {
|
||||
string = GLServerVersion;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue