[Issue 10340] Potential Buffer Overflow in mdb_rebalance