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

[PATCH 0/4] a few minor buffer cleanups in fast-import

From
Jeff King <peff@peff.net>
Date
Mar 24, 2017, 17:22 UTC
Message-ID
<20170324172246.fy5drvhzqxghu44a@sigill.intra.peff.net>

I don't think any of these is a triggerable bug. They're just cleanups to make it more obvious that the code is doing the right thing (and making it harder to do the wrong thing).

  [1/4]: fast-import: use xsnprintf for writing sha1s
  [2/4]: fast-import: use xsnprintf for formatting headers
  [3/4]: encode_in_pack_object_header: respect output buffer length
  [4/4]: pack.h: define largest possible encoded object size
 builtin/pack-objects.c | 12 ++++++++----
 bulk-checkin.c         |  2 +-
 fast-import.c          | 16 +++++++---------
 pack-write.c           |  5 ++++-
 pack.h                 |  9 ++++++++-
 5 files changed, 28 insertions(+), 16 deletions(-)
-Peff
Next: Jeff King
Message 1 of 5 in “a few minor buffer cleanups in fast-import”
  1. 0/4 a few minor buffer cleanups in fast-importJeff King, Mar 24, 2017
  2. 1/4 fast-import: use xsnprintf for writing sha1sJeff King, Mar 24, 2017
  3. 4/4 pack.h: define largest possible encoded object sizeJeff King, Mar 24, 2017
  4. 3/4 encode_in_pack_object_header: respect output buffer lengthJeff King, Mar 24, 2017
  5. 2/4 fast-import: use xsnprintf for formatting headersJeff King, Mar 24, 2017

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.