diff options
| author | Weijun Huang <huangweijun1001@gmail.com> | 2023-03-31 01:18:24 +0200 |
|---|---|---|
| committer | Daniel Black <daniel@mariadb.org> | 2023-05-04 14:37:41 +1000 |
| commit | f288d42cdbc98460e097f771a4ad015667e355fb (patch) | |
| tree | 576c2771deb0aefd1ec9bfea99618c186755dd7f /include/mysql/psi/mysql_socket.h | |
| parent | 7d967423fe2fd061c51f43230e0286cf7868c5b6 (diff) | |
| download | mariadb-git-f288d42cdbc98460e097f771a4ad015667e355fb.tar.gz | |
MDEV-29646: sformat('Num [{:20}]', 42) gives incorrect result in view
The problem is that sformat does not assign the enough space for the
result string. The result string is allocated with the max_length of
argument, but the correst max_length should be based on the format
string.
The patch fixes the problem by using MAX_BLOB_WIDTH to assign length
Diffstat (limited to 'include/mysql/psi/mysql_socket.h')
0 files changed, 0 insertions, 0 deletions
