]> granicus.if.org Git - libvpx/commitdiff
Fix crash when mkvparser returns a NULL BlockEntry.
authorTom Finegan <tomfinegan@google.com>
Mon, 4 Apr 2016 18:49:42 +0000 (11:49 -0700)
committerTom Finegan <tomfinegan@google.com>
Mon, 4 Apr 2016 18:50:44 +0000 (11:50 -0700)
BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1090

Change-Id: I64b7b19581f15d53048e3026c3f8946e344fbe26

webmdec.cc

index f541cfecc1692ebb6894d3ffa5efc42970249c2a..c4539a0b947a99ab350eb1974fdc79c574a947a2 100644 (file)
@@ -164,7 +164,7 @@ int webm_read_frame(struct WebmInputContext *webm_ctx,
       }
       get_new_block = true;
     }
-    if (status) {
+    if (status || block_entry == NULL) {
       return -1;
     }
     if (get_new_block) {