Memory safe ‘curl’ for a more secure internet
daniel.haxx.se
Memory safe ‘curl’ for a more secure internet
1–10 of 210 posts
Re: Memory safe ‘curl’ for a more secure internet
#2Re: Memory safe ‘curl’ for a more secure internet
#3Re: Memory safe ‘curl’ for a more secure internet
#4How often have libcurl HTTP or TLS backend bugs resulted in exploited vulnerabilities in the past?
Re: Memory safe ‘curl’ for a more secure internet
#5Re: Memory safe ‘curl’ for a more secure internet
#6How often have libcurl HTTP or TLS backend bugs resulted in exploited vulnerabilities in the past?
I don't have any data on exploitability, but 19 of the last 22 vulnerabilities (since 2018) have C-induced memory unsafety as a cause: https://curl.haxx.se/docs/security.html
Re: Memory safe ‘curl’ for a more secure internet
#7You can't get memory safety by picking a language with `unsafe` blocks. I appreciate the sentiment but the implementation details are important here; I'd take this more seriously if they picked something like OCaml instead of Rust.
First, in a philosophical sense: pointers and x86 CPUs are real, ultimately any safe abstraction must be built on unsafe primitives. The ability and need to do that aren't specific to memory unsafety, we do that all over software engineering.
Second, empirically, my experience has been that the design of these abstractions can be safe, but moreover that the cordoning off of unsafe blocks makes 3p auditing for memory unsafety _much_ easier to do. It can be orders of magnitude faster than reviewing an entire C or C++ codebase.
Re: Memory safe ‘curl’ for a more secure internet
#8You can't get memory safety by picking a language with `unsafe` blocks. I appreciate the sentiment but the implementation details are important here; I'd take this more seriously if they picked something like OCaml instead of Rust.
Re: Memory safe ‘curl’ for a more secure internet
#9You can't get memory safety by picking a language with `unsafe` blocks. I appreciate the sentiment but the implementation details are important here; I'd take this more seriously if they picked something like OCaml instead of Rust.
Re: Memory safe ‘curl’ for a more secure internet
#10You can't get memory safety by picking a language with `unsafe` blocks. I appreciate the sentiment but the implementation details are important here; I'd take this more seriously if they picked something like OCaml instead of Rust.