[escher] Fix bug in text area (afl-fuzz)

This commit is contained in:
Émilie Feral
2017-09-06 10:00:35 +02:00
committed by Ecco
parent 01efc3c95d
commit 8a50b42611

View File

@@ -116,7 +116,7 @@ int TextArea::Text::removeRemainingLine(size_t index, int direction) {
} else {
m_buffer[++jump] = m_buffer[k+1];
}
if (m_buffer[k] == 0) {
if (m_buffer[k] == 0 || m_buffer[k+1] == 0) {
return delta;
}
}