diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-10-11 12:43:08 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-10-11 12:43:08 +0200 |
commit | 6562cdda5073ac96f7f04324fd47c95a196957f2 (patch) | |
tree | af5360cc7788ac5a0f69bc011497f045530c1cda /src/commit.c | |
parent | 6956a9547702e629915e3818b3fb48704052ac3f (diff) | |
download | libgit2-6562cdda5073ac96f7f04324fd47c95a196957f2.tar.gz |
object: properly propagate errors on parsing failures
When failing to parse a raw object fromits data, we free the
partially parsed object but then fail to propagate the error to the
caller. This may lead callers to operate on objects with invalid memory,
which will sooner or later cause the program to segfault.
Fix the issue by passing up the error code returned by `parse_raw`.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions