https://bugs.winehq.org/show_bug.cgi?id=55309
Bug ID: 55309 Summary: tools/widl/expr.c:272:23: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself (UndefinedBehaviorSanitizer) Product: Wine Version: 8.13 Hardware: x86-64 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: tools Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Debian
For this issue, just recompiling tools/widl is enough to see the issue: ./configure && make -j12 cd tools/widl make clean make CFLAGS="-fsanitize=undefined" LDFLAGS="-fsanitize=undefined"
tools/widl/widl -o include/d3d10_1.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ \ include/d3d10_1.idl tools/widl/expr.c:272:23: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Occurs for a few widl files: tools/widl/widl -o include/d2d1.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ include/d2d1.idl tools/widl/widl -o include/d3d10.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ include/d3d10.idl tools/widl/widl -o include/d2d1effectauthor.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ \ include/d2d1effectauthor.idl tools/widl/widl -o include/d2d1_2.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ \ include/d2d1_2.idl tools/widl/widl -o include/d2d1_1.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ \ include/d2d1_1.idl tools/widl/widl -o include/d2d1_3.h -m32 --nostdinc -Ldlls/* -Iinclude -Iinclude -D__WINESRC__ \ include/d2d1_3.idl