I’ve recently come across arena allocator, and I can already see how they are a big improvement to the standard heap allocator present in C.

What are the other areas it fails to address, when it comes to memory safety?

Is this homework?

One possible example I can think of, is if there is a struct of a known size, and you want to find it, you can allocate a block of the same size, and get a ptr that is near it?

Also, if you know of a function vulnerable to buffer overruns, you can place data near the input for a given buffer as long as you know its size and therefore control what the vulnerable function reads.,

General Programming Discussion
!programming@lemmy.ml

    A general programming discussion community.

    Rules:

    1. Be civil.
    2. Please start discussions that spark conversation

    Other communities

    Systems

    Functional Programming

    Also related

    • 0 users online
    • 4 users / day
    • 6 users / week
    • 27 users / month
    • 134 users / 6 months
    • 1 subscriber
    • 276 Posts
    • 462 Comments
    • Modlog