[MXS-3241] Read past-the-end in setparser.hh Created: 2020-10-16  Updated: 2020-10-19  Resolved: 2020-10-19

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.3.20
Fix Version/s: 2.3.21

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

A query consisting of only whitespace causes a read past the end of the buffer.

bypass_whitespace();
 
if (is_set(m_pI))
{
    rv = parse(pResult);
}

The call to is_set doesn't check whether m_pI points to valid memory.


Generated at Thu Feb 08 04:19:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.