Az egészben az a szép, hogy ez nem is MySQL bug, hanem GCC.
"This flaw was rooted in an assumption that the memcmp() function would always return a value within the range -127 to 127 (signed character). On some platforms and with certain optimizations enabled, this routine can return values outside of this range"
Ha valaki nem tudná, a memcmp, memset és társaik nem libc hívások, hanem a gcc által optimalizált inline makrók.