909f87a4c7
fixes CVE-2017-9433, patch from upstream git, revision 68b3b74569881248bfb6cbb4266177cc253b292f
11 lines
462 B
Diff
11 lines
462 B
Diff
--- src/lib/MsWrd1Parser.cxx
|
|
+++ src/lib/MsWrd1Parser.cxx
|
|
@@ -902,7 +902,7 @@
|
|
int id = fIt++->second;
|
|
fPos[1] = fIt==footnoteMap.end() ? m_state->m_eot : fIt->first;
|
|
if (id >= int(m_state->m_footnotesList.size()))
|
|
- m_state->m_footnotesList.resize(size_t(id),MWAWVec2l(0,0));
|
|
+ m_state->m_footnotesList.resize(size_t(id)+1,MWAWVec2l(0,0));
|
|
m_state->m_footnotesList[size_t(id)]=fPos;
|
|
}
|
|
ascii().addDelimiter(input->tell(),'|');
|