[MDEV-3289] LP:698132 - valgrind error "Invalid write of size 1" in client.c send_change_user_packet() Created: 2011-01-06 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Kristian Nielsen | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
I'm not sure that mysql_client_test is run under valgrind normally, but the (cd mysql-test && ./mtr main.mysql_client_test --start) valgrind tests/mysql_client_test --defaults-file=mysql-test/var/my.cnf --vardir=mysql-test/var test_bug31669 ##################################### It looks to me like this buffer in send_change_user_packet() is allocated a buff= my_alloca(USERNAME_LENGTH + data_len + 1 + NAME_LEN + 2 + NAME_LEN); The buffer size seems to be missing space for zero terminators of the |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 698132 |