by cowlevel · 2w ago · 0 comments
Seriously, when is the last time you heard of a buffer overflow RCE in Java code? I actually want to know.
How do you figure? Take MapWindows::clone - what does your "equivalent code in Go" look like and how is it memory safe while achieving a similar result? I say that in most cases there is no equivalence.
> Seriously, when is the last time you heard of a buffer overflow RCE in Java code? I actually want to know.
But why a buffer overflow? These Rust bugs aren't buffer overflows [arguably one of them is, but it's a stretch] so I can't see the relevance. There have been plenty of RCE bugs in Java, that's one reason Oracle no longer supports the "Java security model" where we trust that somehow the very complicated Java runtime won't have bugs and so we can rely on Java's safety rules to protect our system security. If you're looking to learn more about this, look for articles on "gadgets" in Java exploitation.
Fearless concurrency tends to overlook OS IPC mechanism, DMA, or external data like shared database connections.
It wasn't that many years ago when getting anything more than 4 cores for a gaming PC was seen as a waste because most games couldn't even use 4 threads.
Threads and concurrency is not the same by the way, as Rob Pike puts it, "concurrency is not parallelism".