4 ms·
Python lets you write unsafe code. https://wiki.python.org/moin/CrashingPython https://wiki.python.org/moin/CrashingPython Does that mean it's no safer than C+
by rom-antics 4y ago
Python lets you write unsafe code. https://wiki.python.org/moin/CrashingPython https://wiki.python.org/moin/CrashingPython
Does that mean it's no safer than C++?
- mr_00ff00 4y agoWhat? Those aren’t memory exploitable bugs. And no I am not, you are saying that. I think python is way safer than either, you seem to think because you can crash a python program that means the memory vulnerabilities of rust are justified.
- rom-antics 4y agoCrashes are just security holes that nobody has crafted an exploit for yet.
- mr_00ff00 4y agoGCs do various resource clean up that mean certain bugs are not exploitable. Rust does not have that. And you didn’t address my second point.
- rom-antics 4y ago> GCs do various resource clean up that mean certain bugs are not exploitable. Rust does not have that. All of the work Python does at runtime with a GC, Rust does at compile time with the borrow checker. GC is orthogonal to the idea of memory safety. > And you didn’t address my second point. I don't know what you expect. It's a semantically empty statement and thus unfalsifiable. You can flip it around without changing the truth or the meaning: > you seem to think because you can crash a Rust program that means the memory vulnerabilities of Python are justified.
- ameliaquining 4y agoIt's not just crashes. Python's ctypes API can do anything that unsafe Rust can do, including the parts that permit arbitrary code execution vulnerabilities.