[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. |