• Jinoh Kang's avatar
    ntdll/tests: Fix incorrect calculation of context length in test_copy_context(). · 7ba9dea9
    Jinoh Kang authored
    `(BYTE *)dst_ex - (BYTE *)dst` is the size of the legacy context, but
    `dst_ex->All` already contains the legacy context.  Therefore,
    `context_length` has the legacy context size added *twice*.
    
    This becomes a problem when `context_length` exceeds
    `sizeof(src_context_buffer)`.  This confuses `check_changes_in_range()`,
    causing out-of-bounds read and unpredictable test results.
    7ba9dea9
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE.md Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...