]> git.ipfire.org Git - thirdparty/git.git/commit
bundle-uri: validate that bundle entries have a uri
authorSam Bostock <sam.bostock@shopify.com>
Fri, 19 Dec 2025 16:01:46 +0000 (16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Dec 2025 05:45:27 +0000 (14:45 +0900)
commit7796c14a1a4b73869ae6a954ec20bca561783231
tree75676df5bd8a5995b6589853ffd488283aec2a32
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
bundle-uri: validate that bundle entries have a uri

When a bundle list config file has a typo like 'url' instead of 'uri',
or simply omits the uri field, the bundle entry is created but
bundle->uri remains NULL. This causes a segfault when copy_uri_to_file()
passes the NULL to starts_with().

Signed-off-by: Sam Bostock <sam@sambostock.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle-uri.c
t/t5750-bundle-uri-parse.sh