MXS-3241: Check buffer length

The `is_set` call assumes that at least three characters are present.
This commit is contained in:
Markus Mäkelä 2020-10-16 12:19:15 +03:00
parent 8a5fd27327
commit 48ef9754df
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -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);
}