Lazily validate that input bytes are valid UTF-8

This commit is contained in:
Richard Feldman 2020-07-25 22:12:42 -04:00
parent 15f087c93e
commit 9f9ce327d4
21 changed files with 709 additions and 626 deletions

View file

@ -584,7 +584,7 @@ fn parse_src(
/// This has two unsafe calls:
///
/// * memory map the filename instead of doing a buffered read
/// * assume the contents of the file are valid utf8
/// * assume the contents of the file are valid UTF-8
fn load_filename(
filename: PathBuf,
msg_tx: MsgSender,