msi: Prevent call to memset with a nullptr in get_tablecolumns function

Daniel Beitler dan at
Sun May 18 12:27:42 CDT 2014

This is a fix for bug #36139.

It looks like calling memset with a nullptr is undefined behavior. Gcc 
4.9 will actually optimize out the "if(colinfo)" condition if memset was 
called on colinfo before.

  dlls/msi/table.c | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msi-Prevent-call-to-memset-with-a-nullptr-in-get_tab.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list