• Marko Mäkelä's avatar
    MDEV-22387: Do not violate __attribute__((nonnull)) · 7c5519c1
    Marko Mäkelä authored
    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.
    7c5519c1
protocol.cc 47.2 KB