[MXS-258] ERR_error_string could overflow in future Created: 2015-07-10  Updated: 2015-08-20  Resolved: 2015-07-12

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

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

All



 Description   

ERR_error_string specifies the buffer size needed for the error message that it creates. But this number could change in future, with unpredictable results. The alternative ERR_error_string_n allows the specification of a maximum size (including the terminating null) and truncates the string if necessary. This would be safe even if the default buffer size increased over the current fixed limit.



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

Switched all calls to ERR_error_string_n.

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