Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reloading of references to not cause access to freed memory
Make the allocation of refs stable across reloads (of either the main, branch or log view) by changing the storage method and introducing a struct ref_list to keep track of lists of references. read_ref now always scans the already allocated refs. To speed this up keep the list sorted and use binary search when inserting and updating.
- Loading branch information
Showing
1 changed file
with
102 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters