Skip to content

Another bundle fix: reading freed memory

Thomas Rast git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4t5510: refactor bundle->pack conversiont/t5510-fetch.sh+10 -140 replies
2/4t5510: fix indent with spacest/t5510-fetch.sh+8 -80 replies
3/4t5510: ensure we stay in the toplevel test dirt/t5510-fetch.sh+1 -04 replies
4/4bundle: keep around names passed to add_pending_object()bundle.c t/t5510-fetch.sh+17 -12 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/4] Another bundle fix: reading freed memory

This is about the fourth patch, the other three are just cleanups. Valgrind caught me reading free()d memory after the recent change to a strbuf in create_bundle. Luckily it's the only report I got.

I made a token effort to verify that nobody else is playing mind games with the .name fields in struct object_array, but I'm rather tired so it would be nice if someone could double-check. In any case bundle is the only user of object_array_remove_duplicates.

Thomas Rast (4):
t5510: refactor bundle->pack conversion
t5510: fix indent with spaces
t5510: ensure we stay in the toplevel test dir
bundle: keep around names passed to add_pending_object()

 bundle.c         |    2 +-
 t/t5510-fetch.sh |   57 +++++++++++++++++++++++++++++++++---------------------
 2 files changed, 36 insertions(+), 23 deletions(-)
Signature · 1 line
1.7.9.2.467.g7fee4