diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-03 09:05:56 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-03 09:05:56 +0300 |
commit | 94a520ddbe39ae97de1135d98699cf2674e6b77e (patch) | |
tree | 051dc62fd84edc150754dd826830d467b45074d8 /strings/strcont.c | |
parent | a256070e7d94fdd1d63a4823c638ff5c76ca9c73 (diff) | |
download | mariadb-git-94a520ddbe39ae97de1135d98699cf2674e6b77e.tar.gz |
MDEV-22387: Do not pass null pointer to some memcpy()
Passing a null pointer to a nonnull argument is not only undefined
behaviour, but it also grants the compiler the permission to optimize
away further checks whether the pointer is null. GCC -O2 at least
starting with version 8 may do that, potentially causing SIGSEGV.
These problems were caught in a WITH_UBSAN=ON build with the
Bug#7024 test in main.view.
Diffstat (limited to 'strings/strcont.c')
0 files changed, 0 insertions, 0 deletions