Quantcast
Channel: BOT24
Viewing all articles
Browse latest Browse all 8064

Inspection of SAR Instructions

$
0
0
SAR stands for Shift Arithmetic Right and the instruction performs arithmetic shift. The instruction preserves the sign of the value to be shifted and so the vacant bits are filled according to the sign-bit.

Compilers generate SAR instruction when right shift operator ">>" is used on a signed integer.

The use of SAR instruction can potentially lead to create a signedness bug if it's assumed the shift is unsigned.


more here.............http://reversingonwindows.blogspot.com/2014/07/inspection-of-sar-instructions.html

Viewing all articles
Browse latest Browse all 8064

Trending Articles