I'll submit the bug to the MariaDB issue tracker. I've just reproduced this bug on Oracle MySQL 5.6, so I will also submit the bug to them.