[xiph-commits] r13294 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Mon Jul 23 18:08:23 PDT 2007


Author: xiphmont
Date: 2007-07-23 18:08:23 -0700 (Mon, 23 Jul 2007)
New Revision: 13294

Modified:
   trunk/vorbis/lib/vorbisfile.c
Log:
Catch one bulletproofing oversight; only an app bug would trip it



Modified: trunk/vorbis/lib/vorbisfile.c
===================================================================
--- trunk/vorbis/lib/vorbisfile.c	2007-07-24 00:09:47 UTC (rev 13293)
+++ trunk/vorbis/lib/vorbisfile.c	2007-07-24 01:08:23 UTC (rev 13294)
@@ -553,7 +553,7 @@
   /* we're partially open and have a first link header state in
      storage in vf */
   /* we can seek, so set out learning all about this file */
-  if(vf->callbacks.seek_func){
+  if(vf->callbacks.seek_func && vf->callbacks.tell_func){
     (vf->callbacks.seek_func)(vf->datasource,0,SEEK_END);
     vf->offset=vf->end=(vf->callbacks.tell_func)(vf->datasource);
   }else{



More information about the commits mailing list