Update libgit2 to include segfault fix for git_reflog_read#759
Update libgit2 to include segfault fix for git_reflog_read#759johnhaley81 merged 1 commit intonodegit:masterfrom
Conversation
|
Shouldn't this fix be upstreamed to libgit2? Kind of sketched about us maintaining a separate libgit2 that differs from published versions when we update. |
|
@tbranyen There is an outstanding PR that includes this fix (libgit2/libgit2#3463) - this is the most critical part of that PR as it fixes a segfault. It is also probably the safest part - it only changes a The idea behind this PR was to get the segfault fixed in NodeGit until the upstream PR gets merged and released. |
|
Definitely not interested in maintaining a forked version of libgit2. I'd say make another PR to However, until that lands I'm ok with using a fork as a temporary work around. |
|
@tbranyen you cool with me merging this? |
|
What is really fixing the problem? Changing malloc to calloc? That's fishy a bit. |
|
@saper There is an explanation in libgit2/libgit2#3458 (comment)... it breaks down like this: When we do When using calloc instead of malloc, |
|
I'm going to go ahead and merge this. We'll change back to using libgi2 proper after libgit2/libgit2#3458 is merged and released. |
Update libgit2 to include segfault fix for git_reflog_read
Applies the changes from nodegit/libgit2#2 to NodeGit.