Fix signed overflow in _book_maptype1_quantvals().
authorTimothy B. Terriberry <tterribe@xiph.org>
Tue, 4 Oct 2016 01:22:16 +0000 (18:22 -0700)
committerRalph Giles <giles@mozilla.com>
Fri, 16 Jun 2017 18:40:19 +0000 (11:40 -0700)
commite5b1378996dba3ea82fb35403cb1f0bbff19495c
treeff37fa72e3177455fa830039cbdb9c4c242fa8c6
parent143caf4023a90c09a5eb685fdd46fb9b9c36b1ee
Fix signed overflow in _book_maptype1_quantvals().

If b->dims is very large, vals will be 1 and acc1 will overflow a
 long.
This causes us to read too many values for this codebook.

Signed-off-by: Monty <xiphmont@xiph.org>
lib/sharedbook.c