Commit graph

6 commits

Author SHA1 Message Date
Norio Akagi
84d26f98c7
MDEV-28315 Fix ASAN stack-buffer-overflow in String::copy_aligned
Starting since this commit 36cdd5c3cd
there is an ASAN stack-buffer-overflow error because we append a NULL
terminator beyond the length of memory allocated.

Reviewed by: Monty and Nayuta Yanagisawa
2022-08-01 20:27:33 +09:00
Marko Mäkelä
fd5a6d0f75 MDEV-27964: Test ENCRYPT() only in main.func_crypt 2022-03-01 09:22:52 +02:00
Monty
233590a48d MDEV-25754 ASAN: stack-buffer-overflow in Field_newdate::val_str()
Problem was that Field_newdate() didn't allocate a string big enough for
the result.
2021-06-07 18:28:27 +03:00
Monty
b1009ddfc9 MDEV-25778 Overrun buffer in to_string_native()
Problem was that str->alloc(length) needed a buffer of length+1 as
decimals2string() will add an end null.
2021-06-07 18:15:39 +03:00
Sergei Golubchik
d8127ff76e fix main.strings test to clean up after itself 2021-05-20 16:05:24 +02:00
Monty
5c7d243b29 Add support for minimum field width for strings to my_vsnprintf()
This patch adds support for right aligned strings and numbers.
Left alignment is left as an exercise for anyone needing it.

MDEV-25612 "Assertion `to <= end' failed in process_args" fixed.
(Was caused by the original version of this patch)
2021-05-19 22:27:29 +02:00