diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-10-07 09:18:55 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2016-10-07 09:18:55 +0200 |
commit | 4974e3a59648095ffa6fce6c5b651a820c0c34b9 (patch) | |
tree | 44da990a27e6ed05f83491ac158df44200eb6df0 /src/commit.c | |
parent | a08e88259fe7ef3d7514a4774acd6eec5a6a2ca7 (diff) | |
download | libgit2-4974e3a59648095ffa6fce6c5b651a820c0c34b9.tar.gz |
tree: validate filename and OID length when parsing object
When parsing tree entries from raw object data, we do not verify
that the tree entry actually has a filename as well as a valid
object ID. Fix this by asserting that the filename length is
non-zero as well as asserting that there are at least
`GIT_OID_RAWSZ` bytes left when parsing the OID.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions