https://bugs.winehq.org/show_bug.cgi?id=54564
Bug ID: 54564 Summary: Rich Edit crashes when Ctrl+Right is pressed at past the final paragraph Product: Wine Version: 8.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: richedit Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com CC: huw@codeweavers.com Distribution: ---
Rich Edit crashes with NULL dereference when Ctrl+Right is pressed at past the final paragraph.
Steps to reproduce:
1. Open Wordpad. 2. Press "A". 3. Press Home or Left. 4. Press Ctrl+Right. 5. Press Ctrl+Right.
Expected behaviour:
Wine doesn't crash.
Actual behaviour:
Wine crashes inside `para_next`, because `ME_MoveCursorWords` tries to fetch `next_para` of NULL paragraph pointer.