readIndex & writeIndex int overflow bug solved.