[xiph-cvs] cvs commit: vorbis-tools/share iconvert.c

Ralph Giles giles at xiph.org
Sun Oct 21 16:11:55 PDT 2001



giles       01/10/21 16:11:54

  Modified:    share    iconvert.c
  Log:
  fixed buffer underflow handling in utf-8 conversion code. Thanks to Zinx for tracking this down.

Revision  Changes    Path
1.2       +1 -1      vorbis-tools/share/iconvert.c

Index: iconvert.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/share/iconvert.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- iconvert.c	2001/10/02 03:03:42	1.1
+++ iconvert.c	2001/10/21 23:11:54	1.2
@@ -118,7 +118,7 @@
       if (!newbuf)
         goto fail;
       ob = (ob - utfbuf) + newbuf;
-      obl = utflen - (ob - utfbuf);
+      obl = utflen - (ob - newbuf);
       utfbuf = newbuf;
     }
     else {

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