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

[Patch size_t V3 00/19] use size_t

From
Martin Koegler <martin.koegler@chello.at>
Date
Aug 16, 2017, 20:16 UTC
Message-ID
<1502914591-26215-1-git-send-email-martin@mail.zuhause>
From: Martin Koegler <martin.koegler@chello.at>

This patchset is for next [24db08a6e8fed761d3bace7f2d5997806e20b9f7]. Its a complete collection of all patches. Some errors were fixed and it sticks with off_t for length in (pack) files. Object sizes are handled as size_t.

Martin Koegler (19):
  delta: fix enconding size larger than an "uint" can hold
  Convert size datatype to size_t
  Convert zlib.c to size_t
  delta: Fix offset overflows
  Convert sha1_file.c to size_t
  Use size_t for sha1
  Convert parse_X_buffer to size_t
  Convert fsck.c & commit.c to size_t
  Convert cache functions to size_t
  Add overflow check to get_delta_hdr_size
  Use size_t for config parsing
  Convert pack-objects to size_t
  Convert index-pack to size_t
  Convert unpack-objects to size_t
  Convert archive functions to size_t
  Convert various things to size_t
  Convert ref-filter to size_t
  Convert tree-walk to size_t
  Convert xdiff-interface to size_t
 Documentation/technical/api-parse-options.txt |   2 +-
 apply.c                                       |   6 +-
 archive-tar.c                                 |  20 ++---
 archive-zip.c                                 |  24 ++---
 archive.c                                     |   2 +-
 archive.h                                     |   2 +-
 bisect.c                                      |   2 +-
 blame.c                                       |   6 +-
 blame.h                                       |   2 +-
 blob.c                                        |   2 +-
 blob.h                                        |   2 +-
 block-sha1/sha1.c                             |   2 +-
 block-sha1/sha1.h                             |   2 +-
 builtin/cat-file.c                            |  14 +--
 builtin/difftool.c                            |   2 +-
 builtin/fast-export.c                         |   8 +-
 builtin/fmt-merge-msg.c                       |   4 +-
 builtin/fsck.c                                |   4 +-
 builtin/grep.c                                |   8 +-
 builtin/index-pack.c                          |  40 ++++-----
 builtin/log.c                                 |   4 +-
 builtin/ls-tree.c                             |   4 +-
 builtin/merge-tree.c                          |   6 +-
 builtin/mktag.c                               |   4 +-
 builtin/notes.c                               |   6 +-
 builtin/pack-objects.c                        |  84 +++++++++---------
 builtin/reflog.c                              |   2 +-
 builtin/replace.c                             |   2 +-
 builtin/tag.c                                 |   4 +-
 builtin/unpack-file.c                         |   2 +-
 builtin/unpack-objects.c                      |  34 +++----
 builtin/verify-commit.c                       |   2 +-
 bundle.c                                      |   2 +-
 cache-tree.c                                  |   6 +-
 cache-tree.h                                  |   2 +-
 cache.h                                       |  54 ++++++------
 combine-diff.c                                |  11 +--
 commit.c                                      |  22 ++---
 commit.h                                      |  10 +--
 config.c                                      |  29 ++++--
 config.h                                      |   2 +
 convert.c                                     |  18 ++--
 delta.h                                       |  31 ++++---
 diff-delta.c                                  |  42 +++++----
 diff.c                                        |  46 +++++-----
 diff.h                                        |   2 +-
 diffcore-pickaxe.c                            |   4 +-
 diffcore.h                                    |   2 +-
 dir.c                                         |   6 +-
 dir.h                                         |   2 +-
 entry.c                                       |   4 +-
 environment.c                                 |   4 +-
 fast-import.c                                 |  24 ++---
 fsck.c                                        |  16 ++--
 fsck.h                                        |   2 +-
 grep.h                                        |   2 +-
 http-push.c                                   |   5 +-
 mailmap.c                                     |   2 +-
 match-trees.c                                 |   4 +-
 merge-blobs.c                                 |   6 +-
 merge-blobs.h                                 |   2 +-
 merge-recursive.c                             |   4 +-
 notes-cache.c                                 |   2 +-
 notes-merge.c                                 |   2 +-
 notes.c                                       |   6 +-
 object.c                                      |   4 +-
 object.h                                      |   2 +-
 pack-check.c                                  |   8 +-
 pack-objects.h                                |   6 +-
 pack.h                                        |   2 +-
 parse-options.c                               |   6 +-
 patch-delta.c                                 |  11 +--
 ppc/sha1.c                                    |   2 +-
 ppc/sha1.h                                    |   2 +-
 read-cache.c                                  |  22 ++---
 ref-filter.c                                  |  38 ++++----
 remote-testsvn.c                              |   4 +-
 rerere.c                                      |   2 +-
 sha1_file.c                                   | 122 +++++++++++++-------------
 sha1dc_git.c                                  |   2 +-
 sha1dc_git.h                                  |   2 +-
 streaming.c                                   |  10 +--
 streaming.h                                   |   2 +-
 submodule-config.c                            |   2 +-
 t/helper/test-delta.c                         |   2 +-
 tag.c                                         |   8 +-
 tag.h                                         |   2 +-
 tree-walk.c                                   |  25 +++---
 tree-walk.h                                   |   4 +-
 tree.c                                        |   4 +-
 tree.h                                        |   4 +-
 wrapper.c                                     |   8 +-
 xdiff-interface.c                             |  10 +--
 xdiff-interface.h                             |   6 +-
 zlib.c                                        |   8 +-
 95 files changed, 525 insertions(+), 489 deletions(-)
-- 
2.1.4
Next: Martin Koegler
Message 1 of 33 in “use size_t”
  1. 00/19 use size_tMartin Koegler, Aug 16, 2017
  2. 03/19 Convert zlib.c to size_tMartin Koegler, Aug 16, 2017
  3. 01/19 delta: fix enconding size larger than an "uint" can holdMartin Koegler, Aug 16, 2017
  4. Torsten BögershausenAug 17, 2017
  5. 08/19 Convert fsck.c & commit.c to size_tMartin Koegler, Aug 16, 2017
  6. 11/19 Use size_t for config parsingMartin Koegler, Aug 16, 2017
  7. Johannes SixtAug 24, 2017
  8. 04/19 delta: Fix offset overflowsMartin Koegler, Aug 16, 2017
  9. 12/19 Convert pack-objects to size_tMartin Koegler, Aug 16, 2017
  10. 19/19 Convert xdiff-interface to size_tMartin Koegler, Aug 16, 2017
  11. Junio C HamanoAug 17, 2017
  12. 17/19 Convert ref-filter to size_tMartin Koegler, Aug 16, 2017
  13. Junio C HamanoAug 17, 2017
  14. Junio C HamanoAug 17, 2017
  15. 10/19 Add overflow check to get_delta_hdr_sizeMartin Koegler, Aug 16, 2017
  16. 18/19 Convert tree-walk to size_tMartin Koegler, Aug 16, 2017
  17. Junio C HamanoAug 17, 2017
  18. 16/19 Convert various things to size_tMartin Koegler, Aug 16, 2017
  19. Junio C HamanoAug 21, 2017
  20. 15/19 Convert archive functions to size_tMartin Koegler, Aug 16, 2017
  21. Junio C HamanoAug 21, 2017
  22. brian m. carlsonAug 22, 2017
  23. 07/19 Convert parse_X_buffer to size_tMartin Koegler, Aug 16, 2017
  24. 14/19 Convert unpack-objects to size_tMartin Koegler, Aug 16, 2017
  25. 13/19 Convert index-pack to size_tMartin Koegler, Aug 16, 2017
  26. Ramsay JonesAug 16, 2017
  27. 02/19 Convert size datatype to size_tMartin Koegler, Aug 16, 2017
  28. 09/19 Convert cache functions to size_tMartin Koegler, Aug 16, 2017
  29. 05/19 Convert sha1_file.c to size_tMartin Koegler, Aug 16, 2017
  30. 06/19 Use size_t for sha1Martin Koegler, Aug 16, 2017
  31. Junio C HamanoAug 16, 2017
  32. Torsten BögershausenAug 17, 2017
  33. Martin KoeglerAug 18, 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.