30.07.2014 Views

Attacking the Vista Heap - 2008

Attacking the Vista Heap - 2008

Attacking the Vista Heap - 2008

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Segment Allocation<br />

RtlpExtend<strong>Heap</strong>:<br />

1<br />

2<br />

3<br />

NtAllocateVirtualMemory(INVALID_HANDLE_VALUE, &allocAddr, 0,<br />

&h<strong>Heap</strong>->segmentReserve, MEM_RESERVE, rwProt);<br />

…<br />

NtAllocateVirtualMemory(INVALID_HANDLE_VALUE, &allocAddr, 0,<br />

&segmentCommit, MEM_COMMIT, rwProt);<br />

…<br />

return allocAddr;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!