[PATCH 2/2] ntdll: test corrupt stack frame in RtlCaptureStackBackTrace()

Janne Hakonen joyer83 at live.fi
Sat Jan 29 08:18:46 CST 2011


Adds tests for RtlCaptureStackBackTrace().

The patch includes following tests:
* Test that skipping frames work even if a frame pointer in call stack points
to invalid memory address.
* Test that collecting return addresses (the back trace) work even if a frame
pointer in call stack is invalid.
* Test that the function returns at least some return addresses, call stack
is intact in this case.
* Test that if after skipping some frames, the returned frame count is
still correct.

The patches are skipped if ran on Windows NT or 2000, because the function
seems to cause a crash always on those OSes, unless all frames are skipped.

For tests where function is called with invalid frame pointer must have first
patch in this patchset applied or they will fail on Wine.
---
 dlls/ntdll/tests/rtl.c |   88 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ntdll-test-corrupt-stack-frame-in-RtlCaptureStackBac.patch
Type: text/x-patch
Size: 4246 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110129/a7864019/attachment.bin>


More information about the wine-patches mailing list