> >>> larsxschnei...@gmail.com wrote:
> >>>> +static int apply_protocol_filter(const char *path, const char *src, 
> >>>> size_t len,

Lars Schneider <larsxschnei...@gmail.com> wrote:
> > On 05 Aug 2016, at 20:55, Eric Wong <e...@80x24.org> wrote:
> > Perhaps using xsize_t in git-compat-util.h works for now:
> > 
> >     len = xsize_t(file_stat.st_size);
> 
> Thanks for the hint! Should I add the same check to sha1_file's use
> of fstat in line 1002 or is it not needed there?
> 
> https://github.com/git/git/blob/c6b0597e9ac7277e148e2fd4d7615ac6e0bfb661/sha1_file.c#L1002

Not needed, if you look at the definition of "struct packed_git"
in cache.h, you'll see pack_size is already off_t, not size_t
like `len` is.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to