void-packages/srcpkgs/libmwaw/patches/CVE-2017-9433.patch
Helmut Pozimski 909f87a4c7 libmwaw: add CVE-2017-9433.patch
fixes CVE-2017-9433, patch from upstream git,
revision 68b3b74569881248bfb6cbb4266177cc253b292f
2017-06-14 21:13:30 +02:00

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(),'|');