Fix div by zero or overflow detection on Unix
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 6 Jan 2016 20:47:29 +0000 (21:47 +0100)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 6 Jan 2016 20:47:29 +0000 (21:47 +0100)
commit672d834645374429e440ccb215792f9a2a81f943
tree4f91a580f8c371a78974ca87c8e9bc6f1bd4f23f
parent03bb9a00a68efac5f1637f53ea0099a2dea47117
Fix div by zero or overflow detection on Unix

This change fixes a bug in the code that detects whether a division error
is a division by zero or arithmetic overflow. The code was incorrectly
handling instructions with the SIB byte, since the rm was or-ed with the
rex_r bit even for the case when there was a SIB byte, which in case
where the rex_r was set made it miss the SIB byte.
src/vm/exceptionhandling.cpp