If you can avoid running batch files altogether then great, amazing. But there are projects out there using Rust that still depend on running those and that’s the focus of the issue… But yeah I cannot wait until the day I won’t hear about cmd.exe again.
To run a batch file, you must start the command interpreter; set lpApplicationName to cmd.exe and set lpCommandLine to the following arguments: /c plus the name of the batch file.
Because a batch file (.bat or .cmd) is basically a set of cmd.exe instructions I guess that’s why you can’t get away from it.
And as if making sense of this CreateProcessA
system call wasn’t funny enough, you also need to figure out how to safely prepare that lpCommandLine
for it following all of cmd.exe’s weird escaping rules… lol
It’s definitely not Rust’s fault, but it’s kinda Windows’ one and cmd.exe escape logic… It’s really difficult to write logic that will correctly escape any argument given to it, cmd.exe really is a pain to deal with :/
The Rust security team faced a significant challenge when dealing with cmd.exe’s complexity since they couldn’t find a solution that would correctly escape arguments in all cases.
As a result, they had to improve the robustness of the escaping code and modify the Command API. If the Command API cannot safely escape an argument while spawning the process, it returns an InvalidInput error.
“If you implement the escaping yourself or only handle trusted inputs, on Windows you can also use the CommandExt::raw_arg method to bypass the standard library’s escaping logic,” the Rust Security Response WG added.
I get that in situations where they can’t safely escape a parameter they’ll just stop with an error, which sound as sane as one could go with this!
It’s like you’re sucking the fun out of us… Wait a minute
deleted by creator
You’re right that this is not generating monetary gains
But it’s generating outrage towards Google when what you accuse them of doing isn’t the reality, that’s pretty disingenuous
Not defending Google as a whole, but let’s keep honest about the current developments
The day sponsored trips are the default is the day I’m dropping Maps
Please change “added a sponsored detour” to “proposed a sponsored detour” and it won’t be as misleading anymore
If not immune then what, how do you explain someone that never bought something he saw in one of the countless ads thrown at him?
I am never sick when doing roller coasters or reading in a moving car, but I was really nauseous after my first 15-min VR session. I was pretty scared I fucked up buying a Valve Index only to get that much sick playing… But I had a feeling (hope?) that I could get used to it: After about 2 weeks of playing a bit every night I was no longer getting sick at all. I can go until the controllers run out of battery now.
To me the effort was worth it, but I have a friend that was the opposite and didn’t enjoy experiencing virtual worlds that way…
My advice: If you ever try it then try to ignore the sickness -as you can get used to it- and focus on how much you enjoy being immersed in virtual worlds.
I’m fine with bank heists but please don’t loiter :(
edit: English not my first language yada yada, I confused “loitering” for “littering”… I’m fine with loitering after all