Merge "Fix buffer size check in replyRead" into pi-dev