projects
/
wine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc62d5
)
avoid shifting into the signed bit of integers
author
Michael Gilbert
<mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000
(
01:44
+0100)
committer
Michael Gilbert
<mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000
(
01:44
+0100)
Gbp-Pq: Topic armhf
Gbp-Pq: Name shift-overflow.patch
programs/winedbg/be_arm.c
patch
|
blob
|
history
diff --git
a/programs/winedbg/be_arm.c
b/programs/winedbg/be_arm.c
index a9551a40337b8b86bb3d61046a38c0877ff156c1..c6312e75684ae04cd17de7b25f801e32abad85dc 100644
(file)
--- a/
programs/winedbg/be_arm.c
+++ b/
programs/winedbg/be_arm.c
@@
-706,12
+706,12
@@
static UINT thumb2_disasm_branch(UINT inst, ADDRESS64 *addr)
if (C)
{
offset |= I1 << 19 | I2 << 18 | (inst & 0x003f0000) >> 4;
- if (S) offset |= 0x
0fff << 2
0;
+ if (S) offset |= 0x
fff0000
0;
}
else
{
offset |= I1 << 23 | I2 << 22 | (inst & 0x03ff0000) >> 4;
- if (S) offset |= 0xff
<< 24
;
+ if (S) offset |= 0xff
000000
;
}
dbg_printf("\n\tb%s%s\t", L ? "l" : "", C ? tbl_cond[(inst >> 22) & 0x0f] : "");