-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
ICE: 'failed to get environment variable "\u{103ff}¿\u{1a}\u{0}j\'"
: data provided contains a nul byte', library/std/src/env.rs:252:29
#86082
Comments
Simplified. The other malformed-looking bytes don't matter, do they? |
You are right, they don't. I should have simplified it before submit. |
Going to have a go at this. If I can't figure it out, I'll either ask for help or unassign myself. @rustbot claim |
Still working on this, but I figured an update may be helpful. My research indicates that the two characters that are potentially problematic are Edit: It just occurred to me that I also need to add UI tests. Haven't figured out where to do that yet, but I will. |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
I don't think just adding a check to raise error in these cases would be enough. The Another problem is when the OS supports this kind of environment variable. e.g. |
If this is going to be fixed upstream in |
Actually, simple solution: I'll do the |
Was this fuzzer output? If so, which fuzzer were you using @Cancelll? |
Yes, I am using kira, a work-in-progress fuzzing tool |
Have you considered sorry using structure-aware fuzzing? That could help find bugs not just in the lexer and parser, but also in the middle and back ends. |
Yes, actually kira is structure-aware. |
Simplified. Issue: rust-lang/rust#86082
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: