TritonVM / tasm-lib

A collection of functions written in Triton VM assembly (tasm)
Apache License 2.0
11 stars 2 forks source link

refactor(dyn_malloc): Only allow allocation of every `N` memory pages #130

Open Sword-Smith opened 1 week ago

Sword-Smith commented 1 week ago

Add more space between each dynamically allocated space to reduce risk of memory access outside of the intended memory region.

A drawback of this PR is that using triton-tui is harder, as triton-tui allows you to jump between memory pages using Page Down and Page Up, and you'd have to jump between eight pages to get to the next page allocated by DynMalloc. That's why I marked this PR as a draft.