3557 Rafal Somla 2011-09-29
Bug#12982926 CLIENT CAN OVERRIDE ZERO-LENGTH-ALLOCATE BUFFER
Changes in client plugin needed for testing the issue (test instrumentation).
modified:
libmysql/authentication_win/handshake_client.cc
3556 Marko Mäkelä 2011-09-29
Update the German error message translations (by Stefan Hinz)
and fix some Swedish too.
modified:
mysql-test/r/group_by.result
mysql-test/r/having.result
sql/share/errmsg-utf8.txt
=== modified file 'libmysql/authentication_win/handshake_client.cc'
--- a/libmysql/authentication_win/handshake_client.cc 2011-09-07 18:02:35 +0000
+++ b/libmysql/authentication_win/handshake_client.cc 2011-09-29 15:02:16 +0000
@@ -161,6 +161,21 @@ int Handshake_client::write_packet(Blob
keep all the data.
*/
unsigned block_count= data.len()/512 + ((data.len() % 512) ? 1 : 0);
+
+#if !defined(DBUG_OFF) && defined(WINAUTH_USE_DBUG_LIB)
+
+ /*
+ For testing purposes, use wrong block count to see how server
+ handles this.
+ */
+ DBUG_EXECUTE_IF("winauth_first_packet_test",{
+ block_count= data.len() == 601 ? 0 :
+ data.len() == 602 ? 1 :
+ block_count;
+ });
+
+#endif
+
DBUG_ASSERT(block_count < (unsigned)0x100);
saved_byte= data[254];
data[254] = block_count;
No bundle (reason: useless for push emails).| Thread |
|---|
| • bzr push into mysql-5.5 branch (rafal.somla:3556 to 3557) Bug#12982926 | Rafal Somla | 2 Oct |