Add size-checking for the parsing buffer