Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sword-Smith
Copy link
Contributor

@Sword-Smith Sword-Smith commented Sep 2, 2024

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.

Add more space between each dynamically allocated space to reduce risk
of memory access outside of the intended memory region.
@Sword-Smith Sword-Smith marked this pull request as draft September 2, 2024 16:36
@Sword-Smith Sword-Smith changed the title refactor(dyn_malloc): Only allow allocation of every $N$ pages refactor(dyn_malloc): Only allow allocation of every $N$ memory pages Sep 2, 2024
@Sword-Smith Sword-Smith changed the title refactor(dyn_malloc): Only allow allocation of every $N$ memory pages refactor(dyn_malloc): Only allow allocation of every N memory pages Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant