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