[xiph-cvs] cvs commit: libshout/src shout.c

Karl Heyes karl at xiph.org
Fri Apr 18 18:12:54 PDT 2003



karl        03/04/18 21:12:53

  Modified:    src      shout.c
  Log:
  off by 1 bug. nul char could be written to unallocated space.

Revision  Changes    Path
1.39      +1 -1      libshout/src/shout.c

Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- shout.c	4 Apr 2003 05:43:31 -0000	1.38
+++ shout.c	19 Apr 2003 01:12:53 -0000	1.39
@@ -429,7 +429,7 @@
         if (self->mount)
                 free(self->mount);
 
-	len = strlen (mount) + 1;
+	len = strlen (mount) + 2;
         if (mount[0] != '/')
                 len++;
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list