diff options
author | unknown <aelkin/elkin@dsl-hkibras-fe30f900-107.dhcp.inet.fi> | 2006-11-30 19:56:34 +0200 |
---|---|---|
committer | unknown <aelkin/elkin@dsl-hkibras-fe30f900-107.dhcp.inet.fi> | 2006-11-30 19:56:34 +0200 |
commit | f8d8b3db916d71697a6d5f00eba4f0da6f522959 (patch) | |
tree | 67b062bd7586092c6296c70fa9363f9f9c5af10e /libmysql | |
parent | 46fd7deccbf9fcf75640ecdaa52667fc0d8e5832 (diff) | |
download | mariadb-git-f8d8b3db916d71697a6d5f00eba4f0da6f522959.tar.gz |
Bug #24487 Valgrind: uninited byte in table->record[1] in binlog code for rbr + inno db
The reason of this valgrind's compaint is not a bug but rather a feature of bitwise ops:
for any value of the byte x
x | 1 -> 1, and x & 0 -> 0.
x, being a null_byte part of record[1] can be left unassigned even after
ha_innobase::index_read_idx because the above and still be correct.
Addding a check memory upon the invocation of the function can detect this fact
long before record[1], old record, is eventually passed to my_write.
Fixed with initialization of record[1]'s null_bytes part in open_table_from_share.
sql/table.cc:
initialization of null-bytes for valgrind.
Diffstat (limited to 'libmysql')
0 files changed, 0 insertions, 0 deletions