Off by one error in maximum embedding depth test caused overflow of FileInterner m_tmpflgs temp flags array and possibly bus error depending on arch (only seen on 32 bits arch)

This commit is contained in:
Jean-Francois Dockes 2014-05-15 15:15:01 +02:00
parent acaff7ac49
commit 4ac34cb134

View File

@ -661,7 +661,7 @@ int FileInterner::addHandler()
}
// We need to stack another handler. Check stack size
if (m_handlers.size() > MAXHANDLERS) {
if (m_handlers.size() >= MAXHANDLERS) {
// Stack too big. Skip this and go on to check if there is
// something else in the current back()
LOGERR(("FileInterner::addHandler: stack too high\n"));