Fix buffer overrun on large block reads