libvorbis/libvorbis-r14602-CVE-2008-1419.diff

12 lines
397 B
Diff
Raw Normal View History

Index: /trunk/vorbis/lib/codebook.c
===================================================================
--- /trunk/vorbis/lib/codebook.c (revision 13293)
+++ /trunk/vorbis/lib/codebook.c (revision 14602)
@@ -226,5 +226,5 @@
switch(s->maptype){
case 1:
- quantvals=_book_maptype1_quantvals(s);
+ quantvals=(s->dim==0?0:_book_maptype1_quantvals(s));
break;
case 2: