git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] treewide: fix various bugs w/ OpenSSL 3+ EVP API

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Sep 1, 2023, 06:46 UTC
Message-ID
<ZPGI02eZLmFGKCaE@ugly>
In-Reply-To
<20230901020928.M610756@dcvr>
On Fri, Sep 01, 2023 at 02:09:28AM +0000, Eric Wong wrote:
Show 6 quoted lines
>@@ -1202,7 +1203,9 @@ static void parse_pack_objects(unsigned char *hash)
> 
> 	/* Check pack integrity */
> 	flush();
>+	the_hash_algo->init_fn(&tmp_ctx);
>

does it make sense (and doesn't it potentially even cause a leak) to init the target before cloning into it? at least the fallback simply memcpy()s over it.

Show 6 quoted lines
>@@ -669,7 +670,9 @@ int cmd_unpack_objects(int argc, const char **argv, const char *prefix UNUSED)
> 	the_hash_algo->init_fn(&ctx);
> 	unpack_all();
> 	the_hash_algo->update_fn(&ctx, buffer, offset);
>+	the_hash_algo->init_fn(&tmp_ctx);
>
ditto
>+	the_hash_algo->clone_fn(&tmp_ctx, &ctx);
>+	the_hash_algo->final_oid_fn(&oid, &tmp_ctx);
regards
Previous: Junio C HamanoNext: Bagas Sanjaya
Message 6 of 8 in “[REGRESSION] Can't clone GitHub repos (fetch-pack error) due to avoiding deprecated OpenSSL SHA-1 routines”
  1. Bagas SanjayaAug 31, 2023
  2. brian m. carlsonAug 31, 2023
  3. Eric WongSep 1, 2023
  4. treewide: fix various bugs w/ OpenSSL 3+ EVP APIEric Wong, Sep 1, 2023
  5. Junio C HamanoSep 1, 2023
  6. Oswald BuddenhagenSep 1, 2023
  7. Bagas SanjayaSep 1, 2023
  8. Bagas SanjayaSep 1, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.