Kamil Dudka wrote:
Do you have an example of the larger case? We could add a test-case for it.
I don't have an example. It would have to be pretty large, e.g., input containing more than 2**31 lines.
Your patch introduces the following warnings:
These are Coverity warnings, right? They are false alarms, as usual for Coverity with this sort of thing.