Subject: Re: [PATCH 2/2] Support sizes >=2G in various config options accepting 'g' sizes.

From: Johannes Sixt <[email-masked]>
Date: Tue, 06 Sep 2011 12:22:09 +0200

Am 9/6/2011 11:13, schrieb Nix:
> ... amounts to writing our own strtol()
> specifically for this one case, to see if the parsed number is
> too long.

Why so? strtol() can report overflow:

RETURN VALUE

    ...
    If the correct value is outside the range of representable values,
{LONG_MIN}, {LONG_MAX}, {LLONG_MIN}, or {LLONG_MAX} shall be returned
(according to the sign of the value), and errno set to [ERANGE].

-- Hannes