summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-10-30 13:07:42 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-10-30 13:07:42 +0200
commitcb253b8687092960287c333962d56771f6ad9db8 (patch)
tree68be7ea00ada38f699a65828a46c28105b9bc1db /include
parent199863d72b7cccaa4c75641c50c45a83b568ab8c (diff)
downloadmariadb-git-cb253b8687092960287c333962d56771f6ad9db8.tar.gz
MDEV-22387: Static_binary_string::q_append() invokes memcpy on NULL
Invoking memcpy() on a NULL pointer is undefined behaviour (even if the length is 0) and gives the compiler permission to assume that the pointer is nonnull. Recent versions of GCC (starting with version 8) are more aggressively optimizing away checks for NULL pointers. This undefined behaviour would cause a SIGSEGV in the test main.func_encrypt on an optimized debug build on GCC 10.2.0.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions