From 110d96634b3d514a1b7ac306563d2131db5443c5 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 17 Jan 2012 12:06:18 +0100 Subject: [PATCH] oleaut32: Handle negative offsets into the custom data table. Fixes a crash in the Visio 2002 installer. --- dlls/oleaut32/typelib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index a5b0cdd6ab6..1cab886a4b0 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -1939,6 +1939,8 @@ static int MSFT_CustData( TLBContext *pcx, int offset, struct list *custdata_lis TRACE_(typelib)("\n"); + if (pcx->pTblDir->pCDGuids.offset < 0) return 0; + while(offset >=0){ count++; pNew=heap_alloc_zero(sizeof(TLBCustData));