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: Bruno Haible
Subject: Re: checking against signed integer overflow
Date: Sat, 05 Dec 2020 19:07:20 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

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?

Bruno

[1] 
https://www.gnu.org/software/gnulib/manual/html_node/Wraparound-Arithmetic.html




reply via email to

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