postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Overflow check when reading integer values fr

Re: Overflow check when reading integer values from config?

From: Victor Duchovni <Victor.Duchovni_at_nospam>
Date: Mon Oct 11 2010 - 20:28:26 GMT
To: postfix-users@postfix.org

On Mon, Oct 11, 2010 at 12:55:34PM -0400, Wietse Venema wrote:

> Unfortunately, sccanf() returns no error indication when input
> conversion fails - it was broken by design.
>
> Eventually, all numerical conversions will need to be "ported" over
> the strtol() family.

We also have the off_cvt_string() code, which correctly handles
unsigned off_t.

-- Viktor.