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:
203f651
)
Catch one more omission in the vector length guarding
author
Monty
<xiphmont@xiph.org>
Thu, 21 Jun 2007 04:35:10 +0000
(
04:35
+0000)
committer
Monty
<xiphmont@xiph.org>
Thu, 21 Jun 2007 04:35:10 +0000
(
04:35
+0000)
svn path=/trunk/vorbis/; revision=13155
lib/res0.c
patch
|
blob
|
history
diff --git
a/lib/res0.c
b/lib/res0.c
index
53d2e5e
..
7da7c30
100644
(file)
--- a/
lib/res0.c
+++ b/
lib/res0.c
@@
-849,7
+849,7
@@
int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl,
int partitions_per_word=look->phrasebook->dim;
int max=(vb->pcmend*ch)>>1;
int end=(info->end<max?info->end:max);
- int n=
info->
end-info->begin;
+ int n=end-info->begin;
if(n>0){
int partvals=n/samples_per_partition;