Changeset 94824 in webkit
- Timestamp:
- Sep 8, 2011 6:14:50 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94823 r94824 1 2011-09-08 Adam Klein <adamk@chromium.org> 2 3 Always zero-out m_sortedTextBoxesPosition to avoid uninitialized read in TextIterator 4 https://bugs.webkit.org/show_bug.cgi?id=67810 5 6 Reviewed by Tony Chang. 7 8 Reported as a valgrind failure in http://crbug.com/84777. 9 10 No possible change in behavior, so no tests. The unitialized read 11 could never have an impact: 12 13 if (m_sortedTextBoxesPosition + 1 < m_sortedTextBoxes.size()) ... 14 15 Since m_sortedTextBoxes.size() will be zero here if 16 m_sortedTextBoxesPosition is uninitialized, and they're both unsigned, 17 so no possible value of m_sortedTextBoxesPosition could be < 0. 18 19 * editing/TextIterator.cpp: 20 (WebCore::TextIterator::TextIterator): 21 1 22 2011-09-08 Tony Chang <tony@chromium.org> 2 23 -
trunk/Source/WebCore/editing/TextIterator.cpp
r93347 r94824 254 254 , m_firstLetterText(0) 255 255 , m_lastCharacter(0) 256 , m_sortedTextBoxesPosition(0) 256 257 , m_emitsCharactersBetweenAllVisiblePositions(false) 257 258 , m_entersTextControls(false) … … 273 274 , m_remainingTextBox(0) 274 275 , m_firstLetterText(0) 276 , m_sortedTextBoxesPosition(0) 275 277 , m_emitsCharactersBetweenAllVisiblePositions(behavior & TextIteratorEmitsCharactersBetweenAllVisiblePositions) 276 278 , m_entersTextControls(behavior & TextIteratorEntersTextControls)
Note: See TracChangeset
for help on using the changeset viewer.