diff options
author | Norio Akagi <redtree.dev1112@gmail.com> | 2022-07-06 09:23:09 +0000 |
---|---|---|
committer | Nayuta Yanagisawa <nayuta.yanagisawa@hey.com> | 2022-08-01 14:41:17 +0900 |
commit | bb3300d60774b10a5b8a84d2c6baf60d10f41e42 (patch) | |
tree | f20ddd024491488b5794b989394b43f8c2a0129a /sql/sql_string.h | |
parent | a6f7c8edc9b8c394662e06df7421eb6215ced0d3 (diff) | |
download | mariadb-git-bb-10.6-MDEV-28315.tar.gz |
MDEV-28315 Fix ASAN stack-buffer-overflow in String::copy_alignedbb-10.6-MDEV-28315
Starting since this commit 36cdd5c there is an ASAN
stack-buffer-overflow error because we append a NULL terminator
beyond the length of memory allocated.
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index fe57c8153bb..b398d4437ee 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -690,7 +690,7 @@ public: Note that if arg_length == Alloced_length then we don't allocate. This ensures we don't do any extra allocations in protocol and String:int, - but the string will not be atomically null terminated if c_ptr() is not + but the string will not be automatically null terminated if c_ptr() is not called. */ if (arg_length <= Alloced_length && Alloced_length) |