Unbounded buffer
Opened this issue · 0 comments
chadbrewbaker commented
This is where you get in trouble with wc - unbounded buffers when there are no newlines.
command_line_python/wcp/wcp.py
Line 116 in de0f332
Cleanest might be a finite state automats that scans over the buffer - remembers 0-3 unicode prefix bytes.