diff options
author | vinchen <vinchen13@gmail.com> | 2016-10-29 21:59:20 +0800 |
---|---|---|
committer | vinchen <vinchen13@gmail.com> | 2016-10-29 21:59:20 +0800 |
commit | 0e380c3bfead7f03e22660c12339ce0960d52089 (patch) | |
tree | 006f949158932884f3e39637878c4d2c8839f962 /sql/log_event.h | |
parent | c06bc668166ed658e6c68a57d9a6ee42b14189e8 (diff) | |
download | mariadb-git-0e380c3bfead7f03e22660c12339ce0960d52089.tar.gz |
two fix:
1.Avoid overflowing buffers in case of corrupt events
2.Check the compressed algorithm.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 7ac21e379bb..bbefbe26f41 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -5117,11 +5117,11 @@ uint32 binlog_get_compress_len(uint32 len); uint32 binlog_get_uncompress_len(const char *buf); int query_event_uncompress(const Format_description_log_event *description_event, bool contain_checksum, - const char *src, char* buf, ulong buf_size, bool* is_malloc, + const char *src, ulong src_len, char* buf, ulong buf_size, bool* is_malloc, char **dst, ulong *newlen); int row_log_event_uncompress(const Format_description_log_event *description_event, bool contain_checksum, - const char *src, char* buf, ulong buf_size, bool* is_malloc, + const char *src, ulong src_len, char* buf, ulong buf_size, bool* is_malloc, char **dst, ulong *newlen); |