From: Monty Date: Tue, 24 Jul 2007 01:08:23 +0000 (+0000) Subject: Catch one bulletproofing oversight; only an app bug would trip it X-Git-Tag: v1.3.3~317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=424a865c5d1c020ed74873b06d715db8caa287cb;p=platform%2Fupstream%2Flibvorbis.git Catch one bulletproofing oversight; only an app bug would trip it svn path=/trunk/vorbis/; revision=13294 --- diff --git a/lib/vorbisfile.c b/lib/vorbisfile.c index 6d6ec16..d878b4c 100644 --- a/lib/vorbisfile.c +++ b/lib/vorbisfile.c @@ -553,7 +553,7 @@ static int _open_seekable2(OggVorbis_File *vf){ /* 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{