summaryrefslogtreecommitdiff
path: root/t/t9133-git-svn-nested-git-repo.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-09-08 00:54:29 -0400
committerJunio C Hamano <gitster@pobox.com>2022-09-08 11:05:46 -0700
commit3fbfbbb7e3c21515a2863702734fe31bf50672fd (patch)
tree8b0e348e2be4003436ea7123160115d65da4849d /t/t9133-git-svn-nested-git-repo.sh
parentac8035a2affdf30f2c691ad760826d955bba0507 (diff)
list_objects_filter_copy(): deep-copy sparse_oid_name field
The purpose of our copy function is to do a deep copy of each field so that the source and destination structs become independent. We correctly copy the filter_spec string list, but we forgot the sparse_oid_name field. By doing a shallow copy of the pointer, that puts us at risk for a use-after-free if one or both of the structs is cleaned up. I don't think this can be triggered in practice, because we tend to leak the structs rather than actually clean them up. But this should future-proof us for plugging those leaks. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
0 files changed, 0 insertions, 0 deletions