diff options
author | John Reck <jreck@google.com> | 2012-08-31 11:43:52 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-08-31 11:43:52 -0700 |
commit | bae7aeaa877799dc8cffdf66aba2ef118b19a186 (patch) | |
tree | 57f535db076c59271f04325390c87edb9d4f92f4 | |
parent | 3f9aace3c8671247a9b06117658d44282871ba89 (diff) | |
download | external_webkit-bae7aeaa877799dc8cffdf66aba2ef118b19a186.zip external_webkit-bae7aeaa877799dc8cffdf66aba2ef118b19a186.tar.gz external_webkit-bae7aeaa877799dc8cffdf66aba2ef118b19a186.tar.bz2 |
Fix initialization
Bug: 7074134
There are early returns in the TextIterator ctor that would result
in m_needsAnotherNewline being left unitialized. This results in
the first call to advance() crashing due to m_needsAnotherNewline
taking an earlier path that doesn't have all the same initialized
checks
Change-Id: I1d89912532275323f71de8055c33257619b93cbb
-rw-r--r-- | Source/WebCore/editing/TextIterator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/editing/TextIterator.cpp b/Source/WebCore/editing/TextIterator.cpp index 3aa68af..871d1f9 100644 --- a/Source/WebCore/editing/TextIterator.cpp +++ b/Source/WebCore/editing/TextIterator.cpp @@ -298,6 +298,7 @@ TextIterator::TextIterator(const Range* r, TextIteratorBehavior behavior) #if OS(ANDROID) , m_stopsOnFormControls(behavior & TextIteratorStopsOnFormControls) , m_shouldStop(false) + , m_needsAnotherNewline(false) #endif { if (!r) |