[Issue 10493] change in 2.6.13 for ber_bvreplace_x introduces out of bounds reads