You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When insufficient data is encountered while parsing an escaped string sequence (appears to be all types of sequences, but I have not verified), an error is returned that is not correctly identified as Insufficient data. This is causing the raw text reader to fail rather than requesting more data.
The text was updated successfully, but these errors were encountered:
After some digging, just re-read the error and realized this is not a UTF-8 boundary issue, but rather the parser not correctly identifying an incomplete error while parsing escaped sequences.
Trivial repro:
let source = "\"123456\\u269b\"";// ^-- First read stops here.letmut reader = RawTextReader::new(source.as_bytes()[..10].to_owned());
reader.next()?;
Running that returns an Err of:
unexpected error after partial escaped sequence: unrecognized input near line 0: could not parse an escaped character (Unicode, hex, or literal): Parsing requires more data: '"123456\u2''
nirosys
changed the title
Invalid UTF-8 Sequence while parsing text Ion.
Fatal error generated when insufficient data reached while parsing escaped sequence
Mar 28, 2023
When insufficient data is encountered while parsing an escaped string sequence (appears to be all types of sequences, but I have not verified), an error is returned that is not correctly identified as Insufficient data. This is causing the raw text reader to fail rather than requesting more data.
The text was updated successfully, but these errors were encountered: