lemon-rs icon indicating copy to clipboard operation
lemon-rs copied to clipboard

Crash on invalid UTF-8

Open MarinPostma opened this issue 11 months ago • 1 comments

The following input crashes the parser because of an invalid UTF8 sequence bad-utf8.txt

MarinPostma avatar Mar 14 '24 17:03 MarinPostma

I cannot reproduce:

lemon-rs % cargo run --example sql_cmds bad-utf8.txt
bad-utf8.txt
CREATE TABLE LEC� (ABLEBL "0", "0" EATE TABL0BL REFERENCES a);
CREATE TABLE LEC� (ASE0F�Y0);
Err: unknown table option: TA at (3, 30) in /Users/gwen/Downloads/bad-utf8.txt

I guess that the crash was related to #44 which is fixed.

gwenn avatar Mar 18 '24 18:03 gwenn