shithub: libvpx

Download patch

ref: 89a1fcf884f0e7a2d62eb8b45cece8c2bfbe2278
parent: cefaaa86c7fd7f4b2fae65216e854072dcde3aff
parent: 20395189cd30d743eaaec0678373e0a9743b1c6b
author: James Zern <[email protected]>
date: Thu Aug 15 06:59:22 EDT 2013

Merge "vp9_dx_iface: check for NULL/0-size input"

--- a/vp9/vp9_dx_iface.c
+++ b/vp9/vp9_dx_iface.c
@@ -368,6 +368,8 @@
   uint32_t sizes[8];
   int frames_this_pts, frame_count = 0;
 
+  if (data == NULL || data_sz == 0) return VPX_CODEC_INVALID_PARAM;
+
   parse_superframe_index(data, data_sz, sizes, &frames_this_pts);
 
   do {