summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorvinchen <vinchen13@gmail.com>2016-10-29 21:59:20 +0800
committervinchen <vinchen13@gmail.com>2016-10-29 21:59:20 +0800
commit0e380c3bfead7f03e22660c12339ce0960d52089 (patch)
tree006f949158932884f3e39637878c4d2c8839f962 /sql/log_event.h
parentc06bc668166ed658e6c68a57d9a6ee42b14189e8 (diff)
downloadmariadb-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.h4
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);