Bug #15678 | Incorrect unescape of the binary data sent from sjis/cp932 client | ||
---|---|---|---|
Submitted: | 12 Dec 2005 7:14 | Modified: | 4 May 2006 11:33 |
Reporter: | Shuichi Tamagawa | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S3 (Non-critical) |
Version: | 5.x, 4.x | OS: | Any (Any) |
Assigned to: | Alexander Barkov | CPU Architecture: | Any |
[12 Dec 2005 7:14]
Shuichi Tamagawa
[12 Dec 2005 7:15]
Shuichi Tamagawa
Test file to be used by the PHP script
Attachment: 0x9500.txt (text/plain), 2 bytes.
[12 Dec 2005 7:15]
Shuichi Tamagawa
PHP script to reproduce the problem
Attachment: blob.php (application/octet-stream, text), 1.08 KiB.
[21 Dec 2005 20:31]
Aleksey Kishkin
testcase I used
Attachment: tt.c (application/octet-stream, text), 1.63 KiB.
[4 May 2006 11:33]
Alexander Barkov
Shuichi, this is not a bug. You need to use HEX representation, if you're going to send "dangerous" binary data, which have special meening in sjis. You can do it either manually, or using mysql_hex_escape_string(). Another approach is to use "set names binary" before sending dangerous strings.