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

[PATCH 0/2] Support sizes >=2G in various config options, v2

From
Nick Alcock <nix@esperi.org.uk>
Date
Nov 2, 2011, 15:46 UTC
Message-ID
<1320248783-29577-1-git-send-email-nix@esperi.org.uk>
New in this version:
 - overflow detection, as suggested by Johannes Sixt (on 32-bit
   platforms too).
 - no renaming of NO_STRTOUMAX nor NO_STRTOULL.

I think this covers all the bases, including detection of configuration values that overflow signed but not unsigned type only after factor-application (as '3g' would on a 32-bit Linux box).

No new git testsuite failures. (No tests either, because I can't think of one that will reliably induce overflow on a 64-bit box without being totally ludicrous.)

Nick Alcock (2):
  Add strtoimax() compatibility function.
  Support sizes >=2G in various config options accepting 'g' sizes.
 Makefile           |    6 +++---
 compat/strtoimax.c |   10 ++++++++++
 config.c           |   43 +++++++++++++++++++++++++++++++++----------
 3 files changed, 46 insertions(+), 13 deletions(-)
 create mode 100644 compat/strtoimax.c
-- 
1.7.6.1.138.g03ab.dirty
Next: Nick Alcock
Message 1 of 3 in “Support sizes >=2G in various config options, v2”
  1. 0/2 Support sizes >=2G in various config options, v2Nick Alcock, Nov 2, 2011
  2. 1/2 Add strtoimax() compatibility function.Nick Alcock, Nov 2, 2011
  3. 2/2 Support sizes >=2G in various config options accepting 'g' sizes.Nick Alcock, Nov 2, 2011

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.