Message190785
This is a possible fix to this issue. It's not as clean as I'd like, but the simpler versions I tried could end up with the entire file contents in memory for degenerate (or malicious) inputs.
The trick is handling the case where the current line ends with \r. We can't know if this is just a normal character in the file, or represents the end of a line until we see the start of the next line. |
|
Date |
User |
Action |
Args |
2013-06-08 00:52:33 | catlee | set | recipients:
+ catlee |
2013-06-08 00:52:33 | catlee | set | messageid: <1370652753.2.0.115220958335.issue18167@psf.upfronthosting.co.za> |
2013-06-08 00:52:33 | catlee | link | issue18167 messages |
2013-06-08 00:52:32 | catlee | create | |
|