Kaydet (Commit) 5ae015fc authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Eike Rathke

read past end of pCellInfo

Change-Id: Ic024f8dd3aaf368877f5914c6106164508760da8
Reviewed-on: https://gerrit.libreoffice.org/19752Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst c6822f92
...@@ -1100,7 +1100,10 @@ void ScOutputData::DrawBackground(vcl::RenderContext& rRenderContext) ...@@ -1100,7 +1100,10 @@ void ScOutputData::DrawBackground(vcl::RenderContext& rRenderContext)
for (SCCOL nMerged = 0; nMerged < nMergedCells; ++nMerged) for (SCCOL nMerged = 0; nMerged < nMergedCells; ++nMerged)
{ {
nPosX += pRowInfo[0].pCellInfo[nX+nOldMerged+nMerged].nWidth * nLayoutSign; SCCOL nCol = nX+nOldMerged+nMerged;
if (nCol > nX2+2)
break;
nPosX += pRowInfo[0].pCellInfo[nCol].nWidth * nLayoutSign;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment