emersion / go-ical

An iCalendar library for Go
MIT License
52 stars 10 forks source link

decoder: handle long lines #16

Closed ghost closed 2 years ago

ghost commented 2 years ago

In the case of a long input line, decoding fails with bufio.ErrBufferFull. For example, this occurs when the event description is long enough so that the length of the line exceeds the default buffer size.

emersion commented 2 years ago

Instead of working around ReadSlice, can we use ReadLine which returns a isPrefix bool indicating whether more data is available?