Fix uses of uninitialized values in the http-parser backend, a bug introduced in libgit2 1.8.1: https://github.com/libgit2/libgit2/pull/6870 This code is exercised by 'tests/proxy.scm' in Guile-Git. diff --git a/src/libgit2/transports/httpparser.c b/src/libgit2/transports/httpparser.c index 50ba6d2e0..c19499b84 100644 --- a/src/libgit2/transports/httpparser.c +++ b/src/libgit2/transports/httpparser.c @@ -71,6 +71,7 @@ size_t git_http_parser_execute( { struct http_parser_settings settings_proxy; + settings_proxy.on_status = NULL; settings_proxy.on_message_begin = parser->settings.on_message_begin ? on_message_begin : NULL; settings_proxy.on_url = parser->settings.on_url ? on_url : NULL; settings_proxy.on_header_field = parser->settings.on_header_field ? on_header_field : NULL; @@ -78,6 +79,8 @@ size_t git_http_parser_execute( settings_proxy.on_headers_complete = parser->settings.on_headers_complete ? on_headers_complete : NULL; settings_proxy.on_body = parser->settings.on_body ? on_body : NULL; settings_proxy.on_message_complete = parser->settings.on_message_complete ? on_message_complete : NULL; + settings_proxy.on_chunk_header = NULL; + settings_proxy.on_chunk_complete = NULL; return http_parser_execute(&parser->parser, &settings_proxy, data, len); } CT?id=4dc0337146425f57c3170dd98856f5195ca21b27'>commitdiff
path: root/CODE-OF-CONDUCT
AgeCommit message (Expand)Author
2018-05-29CODE-OF-CONDUCT: Switch to version 1.4 of the Contributor Covenant....See the discussion at <https://lists.gnu.org/archive/html/guix-devel/2018-05/msg00146.html>. * CODE-OF-CONDUCT: Adapt from version 1.4 of the Contributor Covenant. Ludovic Courtès