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 9bb61ba commit 4d4befaCopy full SHA for 4d4befa
src/pack.c
@@ -844,7 +844,10 @@ static int packfile_unpack_compressed(
844
unsigned int window_len;
845
unsigned char *in;
846
847
- in = pack_window_open(p, mwindow, *position, &window_len);
+ if ((in = pack_window_open(p, mwindow, *position, &window_len)) == NULL) {
848
+ error = -1;
849
+ goto out;
850
+ }
851
852
if ((error = git_zstream_set_input(&zstream, in, window_len)) < 0 ||
853
(error = git_zstream_get_output_chunk(data + total, &bytes, &zstream)) < 0) {
0 commit comments