We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following snippets crash nsh:
$(printf '\xff')
A=$'\xff' ./target/release/nsh
true $(printf '\x00')
Possible fix to 1 and 2: store strings in Vec<u8>, OsString, or bstr rather than String which forces strings to be valid UTF-8.
Vec<u8>
OsString
bstr
String
Proper behavior for 3 is not specified for POSIX sh; other shells treat it differently.
The text was updated successfully, but these errors were encountered:
Good catch and thanks for detailed explanation! I'll work on it when I have time :)
Sorry, something went wrong.
No branches or pull requests
The following snippets crash nsh:
$(printf '\xff')
.A=$'\xff' ./target/release/nsh
.true $(printf '\x00')
.Possible fix to 1 and 2: store strings in
Vec<u8>
,OsString
, orbstr
rather thanString
which forces strings to be valid UTF-8.Proper behavior for 3 is not specified for POSIX sh; other shells treat it differently.
The text was updated successfully, but these errors were encountered: