diff options
| author | Tobias Nießen <tniessen@tnie.de> | 2019-04-16 18:13:31 +0200 |
|---|---|---|
| committer | Tobias Nießen <tniessen@tnie.de> | 2019-04-16 18:13:31 +0200 |
| commit | cc8a9892705f76a53cfea4e8c2f87b75480aa77a (patch) | |
| tree | eca0bbf04af68cd1f0fceef88e616408dfebc49a /include/git2/errors.h | |
| parent | ed959ca2f158862a59584cbfa0d39a845419f514 (diff) | |
| download | libgit2-cc8a9892705f76a53cfea4e8c2f87b75480aa77a.tar.gz | |
config_file: check result of git_array_alloc
git_array_alloc can return NULL if no memory is available, causing
a segmentation fault in memset. This adds GIT_ERROR_CHECK_ALLOC
similar to how other parts of the code base deal with the return
value of git_array_alloc.
Diffstat (limited to 'include/git2/errors.h')
0 files changed, 0 insertions, 0 deletions
