On Mar 30, 9:02 pm, "Ed" <nos...@[EMAIL PROTECTED]
> wrote:
> It requires apps allocate a minimum buffer size of MAX-FLOAT-DIGITS.
> In practice most apps and forths already meet that. Apps that
dynamically
> ALLOCATE the buffer should ask for ( n ) MAX-FLOAT-DIGITS MAX chars.
OK, so the main pitfall is an application that assumes that MAX-FLOAT-
DIGITS is smaller than it actually is for the system it is running on,
normally because the actual MAX-FLOAT-DIGITS was smaller in the
testbed system, so that REPRESENT overflows the buffer.
And given an environment query for MAX-FLOAT-DIGITS, that can be
patched, pending a rewrite of the source, by performing the REPRESENT
in a local buffer and then copying the appropriate contents into the
buffer handed by the application.


|