We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a765c7 commit 97954eeCopy full SHA for 97954ee
src/libgit2/midx.c
@@ -432,7 +432,7 @@ int git_midx_entry_find(
432
object_offset = idx->object_offsets + pos * 8;
433
offset = ntohl(*((uint32_t *)(object_offset + 4)));
434
if (idx->object_large_offsets && offset & 0x80000000) {
435
- uint32_t object_large_offsets_pos = offset & 0x7fffffff;
+ uint32_t object_large_offsets_pos = (uint32_t) (offset ^ 0x80000000);
436
const unsigned char *object_large_offsets_index = idx->object_large_offsets;
437
438
/* Make sure we're not being sent out of bounds */
0 commit comments