diff options
| author | Han Xin <hanxin.hx@bytedance.com> | 2023-04-26 21:15:03 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-26 10:38:54 -0700 |
| commit | 8e21ff5edb305bcfc12fc782f1c92542c427b624 (patch) | |
| tree | dce4a63684a16b580ae9eaaf62e01b8d254910c5 /builtin/commit.c | |
| parent | The thirteenth batch (diff) | |
| download | git-8e21ff5edb305bcfc12fc782f1c92542c427b624.tar.gz git-8e21ff5edb305bcfc12fc782f1c92542c427b624.zip | |
negotiator/default: avoid stack overflow
mark_common() in negotiator/default.c may overflow the stack due to
recursive function calls. Avoid this by instead recursing using a
heap-allocated data structure.
This is the same case as 4654134976f (negotiator/skipping: avoid
stack overflow, 2022-10-25)
Reported-by: Xin Xing <xingxin.xx@bytedance.com>
Signed-off-by: Han Xin <hanxin.hx@bytedance.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
