From 0040bb95445e800af80ca9fa1b92f5db33f1b4ac Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 10 Oct 2007 16:48:12 -0700 Subject: [PATCH] Fix potential use-after-free in XV overlay code on video stop. --- src/i830_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i830_video.c b/src/i830_video.c index beec03ea..8c2d804a 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -1016,6 +1016,7 @@ I830StopVideo(ScrnInfoPtr pScrn, pointer data, Bool shutdown) */ I830Sync(pScrn); i830_free_memory(pScrn, pPriv->buf); + pPriv->buf = NULL; pPriv->videoStatus = 0; } else { if (pPriv->videoStatus & CLIENT_VIDEO_ON) {