From 344f7f2e7dbfda5b24df2fa6b18846c3aa25cb40 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 27 Jan 2017 16:36:06 +0100 Subject: [PATCH] Make sanitize more robust to dangling pointers. It is necessary to sanitize the new_word iterator too. --- src/Cursor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 822dc6e53c..14d4a6ae48 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2245,6 +2245,7 @@ void Cursor::sanitize() { setBuffer(&bv_->buffer()); DocIterator::sanitize(); + new_word_.sanitize(); if (selection()) anchor_.sanitize(); else -- 2.39.2