Add sanity checks to fix crash

Copy Huffman tree sanity check from libvorbis to avoid out of bounds memory
access later on.

Bug: 21048776
Change-Id: I3c508572501af188af4224e2a295e9f2554ec9c0
(cherry picked from commit 52193fa3472b79873e73044ce02e1c0a67c85043)
1 file changed
tree: 8beedc4768c82bf983820f652a4a5e25f0c44ad0
  1. Android.mk
  2. CleanSpec.mk
  3. MODULE_LICENSE_BSD_LIKE
  4. NOTICE
  5. README
  6. Tremolo/