shithub: libvpx

Download patch

ref: 504bccf0bbbf00d7d059b77f48a542d8bd4364d6
parent: b7944ff1b8b59ed8a8a46bdc6545ce4118213862
parent: 10b0813a9cbdb76df6a2ec8a011bc5862082b37e
author: Yaowu Xu <[email protected]>
date: Fri Jan 24 03:07:27 EST 2014

Merge "Changed to prevent decoder crash"

--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -743,7 +743,7 @@
   if (!found)
     read_frame_size(rb, &width, &height);
 
-  if (!width || !height)
+  if (width <= 0 || height <= 0)
     vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
                        "Referenced frame with invalid size");