shithub: libvpx

Download patch

ref: 20395189cd30d743eaaec0678373e0a9743b1c6b
parent: bb072000e8da3b5a4f59cf851b8c0d43871b9b6e
author: James Zern <jzern@google.com>
date: Wed Aug 14 14:35:22 EDT 2013

vp9_dx_iface: check for NULL/0-size input

avoids a crash caused by issue #585

Change-Id: I301595ee0227699b0da6f0dad6d870dd546e94ef

--- 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 {