Fixing DOUBLE FREE & MEM LEAK in ArrayList in UNSAFE Rust with Miri 🦀! - Rust DSA v2 (part 5a)

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • Let's tackle some UB we caused with the Iterator implementation and make sure we don't have any memory leaks when using a complex type like String. This is a fun one for learning miri and seeing it in action as it guides me to fix (hopefully) all of the memory issues I've caused.
    My article on ArrayList: metame.substack.com/p/rust-ds...
    Github: github.com/metame/rust-dsa-li...
    Previous episodes:
    Linear & Binary Search: • Linear & Binary Search...
    Singly Linked List: • Singly Linked List in ...
    Doubly Linked List: • Doubly Linked List in ...
    RawVec: • Growable Memory Buffer...
    ArrayList: • ArrayList in UNSAFE Ru...
    Follow along as we implement data structures and algorithms in Rust!
    Watch live at / metameeee
    / metameeee
  • НаукаНаука

Комментарии •