9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] floatfmt on 64-bit targets?
@ 2005-10-25 21:58 William Josephson
  2005-10-25 23:35 ` jmk
  2005-10-26 10:25 ` C H Forsyth
  0 siblings, 2 replies; 4+ messages in thread
From: William Josephson @ 2005-10-25 21:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Has anyone run into problems with %f on 64-bit targets?
With large numbers passed in to %f, it appears xdtoa
overruns s in floatfmt. Has anyone already fixed this?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] floatfmt on 64-bit targets?
  2005-10-25 21:58 [9fans] floatfmt on 64-bit targets? William Josephson
@ 2005-10-25 23:35 ` jmk
  2005-10-26 10:25 ` C H Forsyth
  1 sibling, 0 replies; 4+ messages in thread
From: jmk @ 2005-10-25 23:35 UTC (permalink / raw)
  To: 9fans

I haven't run much fp on the amd64 as yet, only enough
to verify it works via astro. If you can give me an example
I can put it on the list of things to check and fix.

--jim

On Tue Oct 25 17:59:36 EDT 2005, jkw@eecs.harvard.edu wrote:
> Has anyone run into problems with %f on 64-bit targets?
> With large numbers passed in to %f, it appears xdtoa
> overruns s in floatfmt. Has anyone already fixed this?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] floatfmt on 64-bit targets?
  2005-10-25 21:58 [9fans] floatfmt on 64-bit targets? William Josephson
  2005-10-25 23:35 ` jmk
@ 2005-10-26 10:25 ` C H Forsyth
  2005-10-26 16:31   ` William Josephson
  1 sibling, 1 reply; 4+ messages in thread
From: C H Forsyth @ 2005-10-26 10:25 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 63 bytes --]

was that on Plan 9 or plan 9 ports (and if so, which platform)?

[-- Attachment #2: Type: message/rfc822, Size: 2582 bytes --]

From: William Josephson <jkw@eecs.harvard.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] floatfmt on 64-bit targets?
Date: Tue, 25 Oct 2005 17:58:38 -0400
Message-ID: <20051025215838.GA3159@mero.morphisms.net>

Has anyone run into problems with %f on 64-bit targets?
With large numbers passed in to %f, it appears xdtoa
overruns s in floatfmt. Has anyone already fixed this?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] floatfmt on 64-bit targets?
  2005-10-26 10:25 ` C H Forsyth
@ 2005-10-26 16:31   ` William Josephson
  0 siblings, 0 replies; 4+ messages in thread
From: William Josephson @ 2005-10-26 16:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Oct 26, 2005 at 11:25:30AM +0100, C H Forsyth wrote:
> was that on Plan 9 or plan 9 ports (and if so, which platform)?

As Jim discovered, it isn't 64-bit specific.
With %f, the stack-allocated buffer s in
floatfmt isn't big enough and so with a large
argument, the buffer gets overrun.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-26 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-25 21:58 [9fans] floatfmt on 64-bit targets? William Josephson
2005-10-25 23:35 ` jmk
2005-10-26 10:25 ` C H Forsyth
2005-10-26 16:31   ` William Josephson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).