summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff-tree_-r_initial
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-04-11 09:48:14 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-12 13:34:17 +0900
commit73a5faf0176548640784090190bb2448cf1708aa (patch)
tree8cd8928c8eacbd48f96173991077c0e7c5e461d6 /t/t4013/diff.diff-tree_-r_initial
parentGit 2.20.1 (diff)
downloadtgif-73a5faf0176548640784090190bb2448cf1708aa.tar.xz
test-prio-queue: use xmalloc
test-prio-queue.c doesn't check the return value of malloc, and could segfault. It's unlikely for this to matter in practice; it's a small allocation, and this code isn't even installed alongside the rest of Git. But let's use xmalloc(), which makes auditing for other accidental uses of bare malloc() easier. Reported-by: 王健强 <jianqiang.wang@securitygossip.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_-r_initial')
0 files changed, 0 insertions, 0 deletions