Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mlyle
· 3y ago · 0 comments
This isn't a buffer overflow; it's integer wraparound.
Comments
[–]
flappysolutions
3y ago
It is also an integer overflow :)
[–]
TeMPOraL
3y ago
And if that integer is used as a bit buffer... :).
[–]
Hendrikto
3y ago
… you still won‘t write outside the bounds of the integer, making this not a buffer overflow.
[–]
TeMPOraL
3y ago
But you can overflow one bit into the carry flag, though :).
[–]
jefftk
3y ago
If you think of the integer as a buffer of size 31, containing an unsigned integer, the attack overflows into a different buffer of size 1, containing a sign bit for scaling that integer. ;)
But yeah, integer overflow and not buffer overflow.