rusty-ecma/RESSA

possible overflow in `get_lines`

FreeMasen opened this issue · 1 comments

Possible overflow in the get_lines function.

The very last line is pushing this

ret.push(Line {
        start: line_start,
        end: text.len() - 1,
    });

if the text.len() value is 0, this will overflow.

closed by #12