Jan-Benedict Glaw <[EMAIL PROTECTED]> writes:

> On Thu, 2007-06-07 13:27:49 -0400, Mike Frysinger <[EMAIL PROTECTED]> wrote:
>> read what i said again ... the clients are doing write()/read() on the 
>> double 
>> directly, but one side has debugging enabled so it additionally does 
>> printf() 
>> on the values coming across -> bam, server crashes
>
> So it didn't check its input prior using it.

Which function do I call to check a "long double" for validity
before using it?  fpclassify doesn't have an appropriate return
value, and I don't know of another choice.  I think I'm stuck
writing CPU- and floating point representation-specific code to
do this.  Not fun.
-- 
Ben Pfaff 
http://benpfaff.org



Reply via email to