MXS-3241: Check buffer length
The `is_set` call assumes that at least three characters are present.
This commit is contained in:
parent
8a5fd27327
commit
48ef9754df
@ -185,7 +185,7 @@ public:
|
||||
|
||||
bypass_whitespace();
|
||||
|
||||
if (is_set(m_pI))
|
||||
if (m_pEnd - m_pI > 3 && is_set(m_pI))
|
||||
{
|
||||
rv = parse(pResult);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user