when myodbc is linked against newer myodbc versions there is a crash that occurs. This is because mariadb's versions of my_malloc and my_free does some extra work and the pointer returned by my_malloc is not the pointer returned by malloc(). On the other end, myodbc uses malloc() in one of it's function to allocate memory, and then ends up called my_free() in order to free the memory. There is a secondary, unsafe memset as well that could also result in major badness in case of malloc() failure. I've written and uploaded two patches to the referenced bug report, I'll attach the preferred option here. Reproducible: Always
Created attachment 402862 [details, diff] patch to fix myodbc crash
Fixed in myodbc-5.2.7-r2