使用VirtualAlloc时,为什么我至少只能分配1000个字节?

When using VirtualAlloc(0, 5, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); I was hoping to only allocate 5 bytes which I can execute, read and write to, but when looking in x32dbg I see it allocated 1000 bytes in size. Why is this?

enter image description here

我认为这是因为页面大小为1000,这是虚拟内存操作系统中用于内存管理的最小数据单位。但我想听听这是不是真的。

评论