[Issue 9583] New: possible memory corruption in avl_buildlist