bug-gnulib
[Top][All Lists]
Advanced

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

Re: glibc segfault on "special" long double values is _ok_!?


From: Ben Pfaff
Subject: Re: glibc segfault on "special" long double values is _ok_!?
Date: Thu, 07 Jun 2007 11:09:48 -0700
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Jan-Benedict Glaw <address@hidden> writes:

> On Thu, 2007-06-07 13:27:49 -0400, Mike Frysinger <address@hidden> 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

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