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

[PATCH 0/2] repack: prevent geometry struct leak

From
Taylor Blau <me@ttaylorr.com>
Date
Aug 9, 2023, 20:32 UTC
Message-ID
<cover.1691613149.git.me@ttaylorr.com>
In-Reply-To
<20230808211759.GA322409@coredump.intra.peff.net>

This short series combines a patch from Peff and a patch from me to prevent leaking the 'struct pack_geometry *' pointer from the repack code.

The first patch free()s the heap-allocated struct, and the second patch moves the variable to be allocated on the stack.

Jeff King (1):
  repack: free geometry struct
Taylor Blau (1):
  repack: move `pack_geometry` struct to the stack
 builtin/repack.c | 66 +++++++++++++++++++++++-------------------------
 1 file changed, 32 insertions(+), 34 deletions(-)
-- 
2.42.0.rc0.27.g2e2a760381
Previous: Jeff KingNext: Taylor Blau
Message 4 of 7 in “repack: free geometry struct”
  1. repack: free geometry structJeff King, Aug 8, 2023
  2. Taylor BlauAug 8, 2023
  3. Jeff KingAug 8, 2023
  4. 0/2 repack: prevent geometry struct leakTaylor Blau, Aug 9, 2023
  5. 1/2 repack: free geometry structTaylor Blau, Aug 9, 2023
  6. 2/2 repack: move `pack_geometry` struct to the stackTaylor Blau, Aug 9, 2023
  7. Jeff KingAug 10, 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.