Jianfeng/fix readinfoupperbound

@jakebiesinger Fix the range query max problem caused by the new negative offset handling.