unicorn-net
unicorn-net copied to clipboard
Bad page size check
https://github.com/FICTURE7/unicorn-net/blob/master/src/Unicorn.Net/Memory.cs#L101 https://github.com/FICTURE7/unicorn-net/blob/master/src/Unicorn.Net/Memory.cs#L103 https://github.com/FICTURE7/unicorn-net/blob/master/src/Unicorn.Net/Memory.cs#L128 https://github.com/FICTURE7/unicorn-net/blob/master/src/Unicorn.Net/Memory.cs#L130
Page alignment checks are wrong, they should be:
if ((address & ((ulong)PageSize - 1)) != 0)
Same for size.