Skip to content
Tcl Source Code View Ticket
Login

View Ticket

format %lf 1 can crash Linux

Closed / Fixed702622ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-03-13 00:08:00
It was reported and confirmed that
   format "%lf" 1
can crash some Linux machines.  The problem is that 
the 64-bit handling in 8.4 converts this to "%llf" as the 
specifier, which not all libc's appreciate.  Note that 
pedantically correct would be "%Lf", but %lld is what we 
want for ints, so I don't know how we will reconcile this.  
We could just trick it just for format to use 'L' in the long 
case of doubles only.
dkfplain2003-03-14 23:41:32
Logged In: YES 
user_id=79902

Whoever tracked this down did well to identify it, as it
leaves a complete mess on the stack.  Fixed in 8.4 and 8.5
Log in (anonymous is fine) to add a comment.