forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 719612 - Update libvorbis. r=kinetik
- Loading branch information
Timothy B. Terriberry
committed
Jan 20, 2012
1 parent
c69cdb1
commit a507003
Showing
6 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/media/libtremor/lib/tremor_floor1.c b/media/libtremor/lib/tremor_floor1.c | ||
--- a/media/libtremor/lib/tremor_floor1.c | ||
+++ b/media/libtremor/lib/tremor_floor1.c | ||
@@ -103,16 +103,17 @@ static vorbis_info_floor *floor1_unpack | ||
|
||
/* read the post list */ | ||
info->mult=oggpack_read(opb,2)+1; /* only 1,2,3,4 legal now */ | ||
rangebits=oggpack_read(opb,4); | ||
if(rangebits<0)goto err_out; | ||
|
||
for(j=0,k=0;j<info->partitions;j++){ | ||
count+=info->class_dim[info->partitionclass[j]]; | ||
+ if(count>VIF_POSIT)goto err_out; | ||
for(;k<count;k++){ | ||
int t=info->postlist[k+2]=oggpack_read(opb,rangebits); | ||
if(t<0 || t>=(1<<rangebits)) | ||
goto err_out; | ||
} | ||
} | ||
info->postlist[0]=0; | ||
info->postlist[1]=1<<rangebits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/media/libvorbis/lib/vorbis_floor1.c b/media/libvorbis/lib/vorbis_floor1.c | ||
--- a/media/libvorbis/lib/vorbis_floor1.c | ||
+++ b/media/libvorbis/lib/vorbis_floor1.c | ||
@@ -162,16 +162,17 @@ static vorbis_info_floor *floor1_unpack | ||
|
||
/* read the post list */ | ||
info->mult=oggpack_read(opb,2)+1; /* only 1,2,3,4 legal now */ | ||
rangebits=oggpack_read(opb,4); | ||
if(rangebits<0)goto err_out; | ||
|
||
for(j=0,k=0;j<info->partitions;j++){ | ||
count+=info->class_dim[info->partitionclass[j]]; | ||
+ if(count>VIF_POSIT) goto err_out; | ||
for(;k<count;k++){ | ||
int t=info->postlist[k+2]=oggpack_read(opb,rangebits); | ||
if(t<0 || t>=(1<<rangebits)) | ||
goto err_out; | ||
} | ||
} | ||
info->postlist[0]=0; | ||
info->postlist[1]=1<<rangebits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters