https://bugs.winehq.org/show_bug.cgi?id=55314
Bug ID: 55314 Summary: tools/wrc/genres.c:1078:31: runtime error: left shift of 40664 by 16 places cannot be represented in type 'int' (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/wmc is enough to see the issue: ./configure && make -j12 cd tools/widl make clean make CFLAGS="-fsanitize=undefined" LDFLAGS="-fsanitize=undefined"
tools/wrc/wrc -u -o dlls/fusion/version.res --nostdinc -Idlls/fusion -Iinclude -Iinclude/msvcrt -D_UCRT -D__WINESRC__ \ dlls/fusion/version.rc tools/wrc/genres.c:1078:31: runtime error: left shift of 50727 by 16 places cannot be represented in type 'int' tools/wrc/genres.c:1080:31: runtime error: left shift of 50727 by 16 places cannot be represented in type 'int'
tools/wrc/wrc -u -o dlls/msvcr120/version.res --nostdinc -Idlls/msvcr120 -Idlls/msvcrt -Iinclude -Iinclude/msvcrt \ -D_MSVCR_VER=120 -D__WINESRC__ -D_CRTIMP= dlls/msvcr120/version.rc tools/wrc/genres.c:1078:31: runtime error: left shift of 40664 by 16 places cannot be represented in type 'int'
tools/wrc/wrc -u -o programs/ngen/version.res --nostdinc -Iprograms/ngen -Iinclude -Iinclude/msvcrt -D_UCRT -D__WINESRC__ \ programs/ngen/version.rc tools/wrc/genres.c:1078:31: runtime error: left shift of 50727 by 16 places cannot be represented in type 'int' tools/wrc/genres.c:1080:31: runtime error: left shift of 50727 by 16 places cannot be represented in type 'int'