This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gc.gc: Fix out-of-bounds pagetable access
The out-of-bounds access occurs 3 lines below: `pagetable[i + p]` We never check that `i + p < npages`. This patch also acts as a small optimization (don't look at the last `n-1` pages, because it's impossible to find a free chunk of at least `n` pages from those positions). Found using Vagrind.
- Loading branch information