diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-06-27 09:24:38 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-27 10:29:10 -0700 |
commit | 53614b13516ffd27bb045b696d0815b9da435cb0 (patch) | |
tree | cef6ce762baab5a5cc051f36d7354654f8f70789 /sigchain.c | |
parent | commit-graph: verify root tree OIDs (diff) | |
download | tgif-53614b13516ffd27bb045b696d0815b9da435cb0.tar.xz |
commit-graph: verify parent list
The commit-graph file stores parents in a two-column portion of the
commit data chunk. If there is only one parent, then the second column
stores 0xFFFFFFFF to indicate no second parent.
The 'verify' subcommand checks the parent list for the commit loaded
from the commit-graph and the one parsed from the object database. Test
these checks for corrupt parents, too many parents, and wrong parents.
Add a boundary check to insert_parent_or_die() for when the parent
position value is out of range.
The octopus merge will be tested in a later commit.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sigchain.c')
0 files changed, 0 insertions, 0 deletions