Bug #7556 sprintf usage in sql/client.c
Submitted: 28 Dec 2004 12:19 Modified: 28 Jan 2005 0:19
Reporter: Hartmut Holzgraefe Email Updates:
Status: Closed Impact on me:
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1.XX/5.0.XX OS:
Assigned to: Jim Winstead CPU Architecture:Any

[28 Dec 2004 12:19] Hartmut Holzgraefe
sql/client.c relies on format strings for sprintf output length limitation

How to repeat:
see internal info

Suggested fix:
use snprintf
[9 Jan 2005 1:31] Jim Winstead
Changed all sprintf() calls to my_snprintf(). All existing format strings include length limitations in 
the format specification, but this protects against anyone inadvertently changing those or adding 
a new translation missing such limitations.
[28 Jan 2005 0:19] Paul DuBois
No documentation change needed.