[MXS-252] Incorrect use of snprintf Created: 2015-07-08  Updated: 2018-01-15  Resolved: 2015-07-08

Status: Closed
Project: MariaDB MaxScale
Component/s: schemarouter
Affects Version/s: 1.2.0
Fix Version/s: 1.2.0

Type: Bug Priority: Major
Reporter: martin brampton (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

All



 Description   

Line 1704 of shardrouter.c is liable to have unpredictable and probably fatal consequences:

snprintf(errbuf,"Unknown database: %s",db);

since the second parameter should be the number of characters to be used.



 Comments   
Comment by markus makela [ 2015-07-08 ]

Added missing function parameter.

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