[Bug 36267] valgrind shows an invalid read in ddraw/tests/ddraw4.c