summaryrefslogtreecommitdiff
path: root/test/invalid_file_test.cc
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2016-08-18 15:29:56 -0700
committerJames Zern <jzern@google.com>2016-08-19 00:18:11 -0700
commit8b4c31584eb22e944975207e37a7f0d5f1eaecb4 (patch)
treee2a23b560f30ef30c356f1f1bad6a3c9aa1c9d2b /test/invalid_file_test.cc
parent52db2b1690952edabf15e1ece08dcc2e2ec23f7e (diff)
downloadlibvpx-8b4c31584eb22e944975207e37a7f0d5f1eaecb4.tar
libvpx-8b4c31584eb22e944975207e37a7f0d5f1eaecb4.tar.gz
libvpx-8b4c31584eb22e944975207e37a7f0d5f1eaecb4.tar.bz2
libvpx-8b4c31584eb22e944975207e37a7f0d5f1eaecb4.zip
vp9_alloc_context_buffers: clear cm->mi* on failure
this fixes a crash in vp9_dec_setup_mi() via vp9_init_context_buffers() should decoding continue and the decoder resyncs on a smaller frame BUG=b/30593752 Change-Id: I9ce8d94abe89bcd058697e8bd8599690e61bd380
Diffstat (limited to 'test/invalid_file_test.cc')
-rw-r--r--test/invalid_file_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/invalid_file_test.cc b/test/invalid_file_test.cc
index d5dc8405e..f3ac4a7b9 100644
--- a/test/invalid_file_test.cc
+++ b/test/invalid_file_test.cc
@@ -128,6 +128,12 @@ const DecodeParam kVP9InvalidFileTests[] = {
{ 1, "invalid-vp90-03-v3.webm" },
{ 1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-.ivf" },
{ 1, "invalid-vp90-2-00-quantizer-11.webm.ivf.s52984_r01-05_b6-z.ivf" },
+// This file will cause a large allocation which is expected to fail in 32-bit
+// environments. Test x86 for coverage purposes as the allocation failure will
+// be in platform agnostic code.
+#if ARCH_X86
+ { 1, "invalid-vp90-2-00-quantizer-63.ivf.kf_65527x61446.ivf" },
+#endif
{ 1, "invalid-vp90-2-12-droppable_1.ivf.s3676_r01-05_b6-.ivf" },
{ 1, "invalid-vp90-2-05-resize.ivf.s59293_r01-05_b6-.ivf" },
{ 1, "invalid-vp90-2-09-subpixel-00.ivf.s20492_r01-05_b6-.v2.ivf" },