-
Notifications
You must be signed in to change notification settings - Fork 356
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
Add helper alloc_os_str_as_c_str
and use it in env_var emulation
#1098
Conversation
I'm afraid there are some serious bugs in this code: this reads a UTF-16 string via |
My local build of MIRI was successful, but CI is failing. It seems that CI is buliding MIRI with the latest version of rustc specified in Update : there were some changes made to my commit while merging conflicts with the master branch, and I had forgot about that... I will push an update soon to fix them. |
Looks like CI is green. :) I'll put this onto my review queue. However, I am sick, and this might be a longer thing, so don't hold your breath... it could take a while. |
@RalfJung |
Please update the title and description of this PR; it has little to do with its content now. ;) |
alloc_os_str_as_c_str
and make use of it in env_var emulation
alloc_os_str_as_c_str
and make use of it in env_var emulationalloc_os_str_as_c_str
and make use of it in env_var emulation
alloc_os_str_as_c_str
and make use of it in env_var emulationalloc_os_str_as_c_str
and use it in env_var emulation
Co-Authored-By: Ralf Jung <[email protected]>
Co-Authored-By: Ralf Jung <[email protected]>
My local build compiles without errors, but there is a conflict in |
Well, then please rebase and resolve those conflicts. :) |
The new function Lines 474 to 487 in aafb7c9
|
Yeah I deliberately made it private as I thought nothing else would need it. From what I can tell, the alloc function calls this just to be able to determine the length? Hm... I guess we could use |
Please rebase instead of adding merge commits to a PR. |
It's a little lame, but I had already made a merge in this PR with the MIRI master branch once, and I think this PR would mess up the commit history of the project. I will close this PR and instead will submit a new PR right away. |
Wait, why that? Just rebase the branch and force-push. |
I didn't have a separate working branch in my local fork, and I wasn't sure on which point I should set as the rebase point. I'm not familiar with using |
First part of the plan laid out in #707 (comment).