• 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: September 27th, 2023

help-circle
  • I saw the following meme the other day on that topic which I found amazing:

    shrimps have more cones because they're dumb

    On the other hand I hope my point was clear about pink being perceived as a color when it doesn’t exist as a singular wavelength on the electromagnetic spectrum: something the person I was responding to was seemingly arguing that it then invalidates what we might call a “color”. By his logic “pink” shouldn’t be considered a color, which I disagree with!












  • 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!