[xiph-cvs] cvs commit: snatch snatchconvert.c

Monty xiphmont at xiph.org
Tue Feb 26 10:50:32 PST 2002



xiphmont    02/02/26 10:50:31

  Modified:    .        snatchconvert.c
  Log:
  bounds fix for truncated frames

Revision  Changes    Path
1.15      +1 -1      snatch/snatchconvert.c

Index: snatchconvert.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/snatchconvert.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- snatchconvert.c	2002/02/26 06:01:14	1.14
+++ snatchconvert.c	2002/02/26 18:50:29	1.15
@@ -980,7 +980,7 @@
     if(!read_snatch_frame_helper(f,2048,0))return(0);
 
     {
-      unsigned char *poss=strchr(buftemp,':');
+      unsigned char *poss=memchr(buftemp,':',buftemphead);
       int pos=-1;
       if(poss)pos=poss-buftemp;
       if(poss){

<p><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