aswaving / yenc

Encoding and decoding using yEnc encoding in Rust
MIT License
4 stars 4 forks source link

Index out of bounds error with short lines #2

Closed aswaving closed 7 years ago

aswaving commented 7 years ago

When the the presence of '=ybegin' or '=yend' is checked, a slice of line_buf is taken: line_buf[0..8] and line_buf[0..6]. This will fail if line_buf is too short.