filter: fix SIGSEGV when stream return error#3659
filter: fix SIGSEGV when stream return error#3659chyh1990 wants to merge 1 commit intolibgit2:masterlibgit2/libgit2:masterfrom
Conversation
|
Thanks for the fix! I'm curious if you have a unit test that you can create that will illustrate this problem? I ask because after looking at this, and at the other users of As a result, it seems that the |
|
I discover this problem when i'm working on rust binding for libgit2. I can provide a unit test later. The semantics of callbacks in |
|
I find another problem, if you assume 'close' is used to commit a successful stream, in It seems to conflict with our assumption? because |
|
Fixed via #4196 |
stream_start->close is called even stream_list_init() fails in git_filter_list_stream_data(),
but in this case, stream_start will be NULL, causing SIGSEGV.