]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jc/verify-loose-object-header'
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 20:30:36 +0000 (13:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 20:30:36 +0000 (13:30 -0700)
commit71a57ab32d211be19729c3afaf0a7c7283c7a4e2
tree0e251211fd9fd99e0f7ab724084791db632608b7
parent53eb85e6230e2c09dbc06f88b67e7a3baccc4446
parentd21f8426907e84465ab54df5b05bc81057f448d9
Merge branch 'jc/verify-loose-object-header'

Codepaths that read from an on-disk loose object were too loose in
validating what they are reading is a proper object file and
sometimes read past the data they read from the disk, which has
been corrected.  H/t to Gustavo Grieco for reporting.

* jc/verify-loose-object-header:
  unpack_sha1_header(): detect malformed object header
  streaming: make sure to notice corrupt object
sha1_file.c
streaming.c