diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2015-04-23 08:13:38 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2015-04-23 20:43:00 +0200 |
commit | f13cf2437f34402ef76bec6dc2c77f9f388f15b8 (patch) | |
tree | df2ef9c196a52287248f2164a44c647d45782d9a /sw/source/core/table | |
parent | c33422e2c21ed8160fbbb969698216a8a1aeb0b8 (diff) |
Avoid out-of-bounds container index on import of ooo112657-2.rtf
Change-Id: I47dfab3cf276919bfef2829e1159857abb05bb3d
Diffstat (limited to 'sw/source/core/table')
-rw-r--r-- | sw/source/core/table/swnewtable.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/table/swnewtable.cxx b/sw/source/core/table/swnewtable.cxx index 89b07f16e7d0..f84425700203 100644 --- a/sw/source/core/table/swnewtable.cxx +++ b/sw/source/core/table/swnewtable.cxx @@ -377,7 +377,7 @@ SwBoxSelection* SwTable::CollectBoxSelection( const SwPaM& rPam ) const long nRightSpan = 0; long nLeftSpanCnt = 0; long nRightSpanCnt = 0; - for( size_t nRow = nTop; nRow <= nBottom && bOkay; ++nRow ) + for( size_t nRow = nTop; nRow <= nBottom && bOkay && nRow < nLines; ++nRow ) { SwTableLine* pLine = aLines[nRow]; OSL_ENSURE( pLine, "Missing table line" ); |