Skip to content

repack: prevent geometry struct leak

Taylor Blau git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2repack: free geometry structbuiltin/repack.c+3 -50 replies
2/2repack: move `pack_geometry` struct to the stackbuiltin/repack.c+31 -310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.42.0.rc0.27.g2e2a760381