[xorg-commit-diffs] xc/programs/Xserver/GL/glx single2.c,
1.1.4.1.2.1, 1.1.4.1.2.2
Egbert Eich
xorg-commit at pdx.freedesktop.org
Tue Mar 30 09:35:35 PST 2004
Committed by: eich
Update of /cvs/xorg/xc/programs/Xserver/GL/glx
In directory pdx:/tmp/cvs-serv22573/programs/Xserver/GL/glx
Modified Files:
Tag: XORG-RELEASE-1
single2.c
Log Message:
68. Fix the GLLibraryVersion string allocation to accomodate for the
terminating \0 character which would otherwise corrupt the malloc
heap (Bugzilla 385, John Dennis).
Index: single2.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/GL/glx/single2.c,v
retrieving revision 1.1.4.1.2.1
retrieving revision 1.1.4.1.2.2
diff -u -d -r1.1.4.1.2.1 -r1.1.4.1.2.2
--- a/single2.c 4 Mar 2004 17:47:18 -0000 1.1.4.1.2.1
+++ b/single2.c 30 Mar 2004 17:35:32 -0000 1.1.4.1.2.2
@@ -344,7 +344,7 @@
if ( atof( string ) > atof( GLServerVersion ) ) {
buf = __glXMalloc( __glXStrlen( string )
+ __glXStrlen( GLServerVersion )
- + 3 );
+ + 4 );
if ( buf == NULL ) {
string = GLServerVersion;
}
More information about the xorg-commit-diffs
mailing list