dixie: prevent read of uninitialized memory

When reallocating the framebuffer storage, clear references to the
freed memory to prevent it from being accessed.

Change-Id: Ib496b06be469328e8e269f905dc4c9cb6d453a27
This commit is contained in:
John Koleszar
2011-02-01 16:15:45 -05:00
parent dbb7db5b43
commit e75a400cd3

View File

@@ -1633,6 +1633,7 @@ vp8_dixie_predict_init(struct vp8_decoder_ctx *ctx)
vpx_img_free(&ctx->frame_strg[i].img);
ctx->frame_strg[i].ref_cnt = 0;
ctx->ref_frames[i] = NULL;
if (!vpx_img_alloc(&ctx->frame_strg[i].img,
IMG_FMT_I420, w, h, 16))