Added patch to fix possible invalid memory access in wordpad.