Bug #16859 | mysql client improperly handles NULL-terminated strings | ||
---|---|---|---|
Submitted: | 27 Jan 2006 22:28 | Modified: | 4 Mar 2006 0:50 |
Reporter: | Kolbe Kegel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 5.0.19 | OS: | Linux (Linux) |
Assigned to: | Chad MILLER | CPU Architecture: | Any |
[27 Jan 2006 22:28]
Kolbe Kegel
[27 Jan 2006 22:47]
Jorge del Conde
Verified under FC4 with a fresh pull of 5.0. Tested under XP/5.0.18 too with same results
[2 Mar 2006 19:21]
Chad MILLER
Leads to data corruption. Ouch.
[3 Mar 2006 18:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3443
[3 Mar 2006 19:16]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3444
[3 Mar 2006 20:07]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3447
[3 Mar 2006 22:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3452
[3 Mar 2006 22:41]
Chad MILLER
This patch results in columns that contain NUL characters (as opposed to "terminating" with them, which is a programming idiom and has nothing to do with DB data) displaying correctly in the 'mysql' client program. NUL characters are replaced with ASCII spaces, so that the table layout is preserved.
[3 Mar 2006 23:29]
Trudy Pelzer
Fixed in 5.0.19.
[4 Mar 2006 0:50]
Paul DuBois
Noted in 5.0.19 changelog. <command>mysql</command> no longer terminates data value display when it encounters a NUL byte. Instead, it displays NUL bytes as spaces. (Bug #16859)