[MXS-226] dbuser.c missing check for returned results set size - Created: 2015-06-28  Updated: 2015-07-02  Resolved: 2015-07-02

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 1.1.1, 1.2.0
Fix Version/s: 1.2.0

Type: Bug Priority: Major
Reporter: Dipti Joshi (Inactive) Assignee: markus makela
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

Develop branch https://github.com/mariadb-corporation/MaxScale/blob/develop/server/core/dbusers.c#L932 is missing check for the size of the array "row" - can cause SIG11



 Comments   
Comment by markus makela [ 2015-06-29 ]

If the client library is working as intended and the query executes successfully, the amount of columns should never change:

SELECT user.user AS user,
user.host AS host,
user.password AS password,
concat(user.user,user.host,user.password,user.Select_priv,IFNULL(db,'')) AS userdata, 
user.Select_priv AS anydb,
db.db AS db 
FROM mysql.user LEFT JOIN mysql.db
ON user.user=db.user AND user.host=db.host 
WHERE user.user IS NOT NULL AND user.user <> ''

The query will always return either no result at all or a result set with 6 columns of data.

Generated at Thu Feb 08 03:57:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.