• 0 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: July 20th, 2023

help-circle

  • I think rust has good ideas and may even become the default systems language in the mid-term. I find it irritating that there is a very vocal subset of rust proponents that tend to insist that every project in every language needs to be rewritten in rust immediately. I suspect that is also why other people are down on rust.







  • Some of it is good and some of it is bad.

    For instance it basically says that installing arch manually to learn is pointless and you should spend that time taking an operating systems class. This is confusing two completely different kinds of knowledge as well as time investments 2 or 3 orders of magnitude apart.

    The site is also presenting opinions but using language that makes it sound like it is presenting facts.

    Overall, I don’t think it’s a great site. It basically says “there are many differing opinions on various topics, but mine are the correct ones and you should treat me as an authority because I made a website.”

    Not a fan/10



  • The way that rust attempts to prevent this class of error is not by making an implementation of free that is safe to call twice, but by making the compiler refuse to compile programs where free could be called twice on a pointer.

    Anyway, use after free doesn’t depend on a double free. It just means that the program frees memory but keeps the pointer (which now points at memory that could contain unrelated data at some future point in time) and if someone trying to exploit the program finds a way to induce the program to read or write to that memory they may be able to access data they are not expected to, or write data to be used by a different part of the program that they shouldn’t be able to