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

Jan-Benedict Glaw jbglaw@lug-owl.de
Thu Jun 7 17:35:00 GMT 2007


On Thu, 2007-06-07 13:27:49 -0400, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 07 June 2007, Jan-Benedict Glaw wrote:
> > On Thu, 2007-06-07 12:06:58 -0400, Mike Frysinger <vapier@gentoo.org> wrote:
> > > On Thursday 07 June 2007, Jan-Benedict Glaw wrote:
> > > > On Wed, 2007-06-06 22:44:17 +0100, James Youngman <jay@gnu.org> wrote:
> > > > > If I read a stream of data (from a file, a network socket, etc.)
> > > > > which is supposed to contain valid floating-point data, it is
> > > > > reasonable for a program to print it.  Especially so if the printing
> > > > > I am doing is a
[...]
> 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.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:            http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070607/831468c0/attachment.sig>


More information about the Libc-alpha mailing list