[Top][All Lists]

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

Re: [avr-gcc-list] [Bug] float: 0/0 =2

From: Christopher X. Candreva
Subject: Re: [avr-gcc-list] [Bug] float: 0/0 =2
Date: Wed, 24 Sep 2003 11:21:07 -0400 (EDT)

On Wed, 24 Sep 2003, Bjarne Laursen wrote:

> So I guess, to make safe portable c-code, one will have to check all
> operands before doing any calculations, so that NaN and Inf can be avoided.

Yes -- this should be standard C codeing practice for ALL programs. This, in
fact, is the reason for most security bugs in Internet apps written in C !

Setting up wrappers for dangerous functions is covered in a good book -
Math Toolkit for Real-Time Programming .

Chris Candreva  -- address@hidden -- (914) 967-7816
WestNet Internet Services of Westchester

reply via email to

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