diff options
| author | Taylor Blau <me@ttaylorr.com> | 2021-01-13 17:23:35 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-01-13 21:53:45 -0800 |
| commit | 952fc6870d9594b364cf755e8419843b3049d98c (patch) | |
| tree | 840a1acfd40da36b5bfa8beb5cfaf37b217948dc /commit.c | |
| parent | pack-revindex: introduce a new API (diff) | |
| download | git-952fc6870d9594b364cf755e8419843b3049d98c.tar.gz git-952fc6870d9594b364cf755e8419843b3049d98c.zip | |
write_reuse_object(): convert to new revindex API
First replace 'find_pack_revindex()' with its replacement
'offset_to_pack_pos()'. This prevents any bogus OFS_DELTA that may make
its way through until 'write_reuse_object()' from causing a bad memory
read (if 'revidx' is 'NULL')
Next, replace a direct access of '->nr' with the wrapper function
'pack_pos_to_index()'.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
