• Jinoh Kang's avatar
    ntdll/tests: Fix x86-32 extended context end offset in test_copy_context(). · 3995ff24
    Jinoh Kang authored
    The penultimate element of `ranges_x86` array has an incorrect value: it
    should be *at least* 0x2f0, which is the minimum size of an extended
    context.
    
    Fix this by setting it to 0x440, which is the minimum size of an
    extended context *with* CONTEXT_I386_XSTATE.  This is consistent with
    `ranges_amd64`, the penultimate element of which has the minimum size of
    an extended context *with* CONTEXT_AMD64_XSTATE.
    
    Note that the incorrect value does not always lead to a test failure,
    since check_changes_in_range_() effectively ignores range `start`s that
    are not in order.  Reproducing the failure requires a system with a
    sufficiently large XSAVE area; specifically, the following condition is
    necessary for check_changes_in_range_() to pick up the wrong value:
    
        0x2cc < 0x294 + src_ex->XState.Length - sizeof(XSTATE).
    3995ff24
Name
Last commit
Last update
..
Makefile.in Loading commit data...
atom.c Loading commit data...
change.c Loading commit data...
directory.c Loading commit data...
env.c Loading commit data...
error.c Loading commit data...
exception.c Loading commit data...
file.c Loading commit data...
generated.c Loading commit data...
info.c Loading commit data...
large_int.c Loading commit data...
ntdll_test.h Loading commit data...
om.c Loading commit data...
path.c Loading commit data...
pipe.c Loading commit data...
port.c Loading commit data...
reg.c Loading commit data...
rtl.c Loading commit data...
rtlbitmap.c Loading commit data...
rtlstr.c Loading commit data...
string.c Loading commit data...
sync.c Loading commit data...
thread.c Loading commit data...
threadpool.c Loading commit data...
time.c Loading commit data...
virtual.c Loading commit data...
wow64.c Loading commit data...