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.
2 parents a237aba + f576b7d commit 59e9df3Copy full SHA for 59e9df3
src/libgit2/midx.c
@@ -185,7 +185,8 @@ int git_midx_parse(
185
chunk_oid_fanout = {0},
186
chunk_oid_lookup = {0},
187
chunk_object_offsets = {0},
188
- chunk_object_large_offsets = {0};
+ chunk_object_large_offsets = {0},
189
+ chunk_unknown = {0};
190
191
GIT_ASSERT_ARG(idx);
192
@@ -264,7 +265,9 @@ int git_midx_parse(
264
265
break;
266
267
default:
- return midx_error("unrecognized chunk ID");
268
+ chunk_unknown.offset = last_chunk_offset;
269
+ last_chunk = &chunk_unknown;
270
+ break;
271
}
272
273
last_chunk->length = (size_t)(trailer_offset - last_chunk_offset);
0 commit comments