https://bugs.winehq.org/show_bug.cgi?id=38962
Bug ID: 38962 Summary: expr.c:234 and 235 attempted computation of 1 << 31 should be 1u << 31 Product: Wine Version: 1.7.47 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: wine-bugs@winehq.org Reporter: vitti570@gmail.com Distribution: ---
Running widl, in tools/widl/expr.c lines 234 and 235:
cast_mask = ((1 << (cast_type_bits - 1)) - 1) | 1 << (cast_type_bits - 1);
cast_type_bits is 32 thus causing computation of 1 << 31 which cannot be represented in type 'int'. This is illegal and undefined. It should be cast_mask = ((1u << (cast_type_bits - 1)) - 1) | 1u << (cast_type_bits - 1);
instead.
https://bugs.winehq.org/show_bug.cgi?id=38962
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- If you know how to fix an issue then it saves time to simply submit the patches. http://wiki.winehq.org/SubmittingPatches
https://bugs.winehq.org/show_bug.cgi?id=38962
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=38962
lizhenbo litimetal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |litimetal@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38962
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #2 from super_man@post.com --- https://source.winehq.org/patches/data/123511
This bug should be fixed with commit id
bb9b2f33ae5894478ef509fae3f4b8e24267682a
https://bugs.winehq.org/show_bug.cgi?id=38962
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |bb9b2f33ae5894478ef509fae3f | |4b8e24267682a
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to super_man from comment #2)
https://source.winehq.org/patches/data/123511
This bug should be fixed with commit id
bb9b2f33ae5894478ef509fae3f4b8e24267682a
Thanks.
https://bugs.winehq.org/show_bug.cgi?id=38962
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.13.
https://bugs.winehq.org/show_bug.cgi?id=38962
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=38962
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #5 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.4.