projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc8bcb
)
Port r17547 from Tremor.
author
Tim Terriberry
<tterribe@xiph.org>
Fri, 22 Oct 2010 00:24:41 +0000
(
00:24
+0000)
committer
Tim Terriberry
<tterribe@xiph.org>
Fri, 22 Oct 2010 00:24:41 +0000
(
00:24
+0000)
Disallow books with dim<1 in floor0.
svn path=/trunk/vorbis/; revision=17558
lib/floor0.c
patch
|
blob
|
history
diff --git
a/lib/floor0.c
b/lib/floor0.c
index
121a70b
..
c22213b
100644
(file)
--- a/
lib/floor0.c
+++ b/
lib/floor0.c
@@
-92,6
+92,7
@@
static vorbis_info_floor *floor0_unpack (vorbis_info *vi,oggpack_buffer *opb){
info->books[j]=oggpack_read(opb,8);
if(info->books[j]<0 || info->books[j]>=ci->books)goto err_out;
if(ci->book_param[info->books[j]]->maptype==0)goto err_out;
+ if(ci->book_param[info->books[j]]->dim<1)goto err_out;
}
return(info);