[Bug 46694] widl crashes in dlls/atl during build on ppc64el

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 22 02:23:41 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=46694

--- Comment #1 from Timothy Pearson <tpearson at raptorengineering.com> ---
There is a questionable statement in tools/widl/write_msft.c, line 2162:

if (-1 < tunion->typelib_idx)

When widl crashes, typelib_idx is == -1, which as I understand it indicates the
index is invalid?  However, the above statement does not trap the invalid
index.

Changing the statement to read as follows resolves the crash:

if (-1 <= tunion->typelib_idx)

Is this change correct in the context of widl design?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list