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:
parent
acaff7ac49
commit
4ac34cb134
@ -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"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user