bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking against signed integer overflow


From: Jeffrey Walton
Subject: Re: checking against signed integer overflow
Date: Sat, 5 Dec 2020 15:50:17 -0500

On Sat, Dec 5, 2020 at 1:07 PM Bruno Haible <bruno@clisp.org> wrote:
>
> Jeffrey Walton wrote:
> > You might also checkout an overflow library. For the C language,
> > safe_iop is available.
>
> Gnulib's INT_*_WRAPV macros are similar. [1]
>
> > -ftrapv is for defective programs. A program using -ftrapv is still
> > defective and should be fixed.
>
> You mean, '-fwrapv' is for defective programs?

My bad, yes.

I also failed to paste Ian's blog post at
https://www.airs.com/blog/archives/120.

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]