diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-08 22:30:33 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-08 22:35:10 +0200 |
commit | 80f52482c7cde000a76b91fe3d8b6c16baf2141f (patch) | |
tree | 9ca2d056e80473a0db71d1b1b591404c633dbe31 | |
parent | 3d7723526b181686d62f09f81fba3ccdbf7d2b1a (diff) |
XvMC: fix memory overflow
Caught by a malloc library assert.
Note to self: Don't just copy&paste codelines around :(
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Buzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27540
Tested-by: Nick Bowler <nbowler@draconx.ca>
Tested-by: Calvin Walton <calvin.walton@gmail.com>
-rw-r--r-- | src/i830_hwmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_hwmc.c b/src/i830_hwmc.c index c75e4207..850bf876 100644 --- a/src/i830_hwmc.c +++ b/src/i830_hwmc.c @@ -207,7 +207,7 @@ Bool intel_xvmc_adaptor_init(ScreenPtr pScreen) return FALSE; } - pAdapt = xcalloc(1, sizeof(struct intel_xvmc_hw_context)); + pAdapt = xcalloc(1, sizeof(XF86MCAdaptorRec)); if (!pAdapt) { ErrorF("Allocation error.\n"); return FALSE; |