Package: lie
Version: 2.2.2+dfsg-1 

% lie
LiE version 2.2.2 created on Dec 15 2007 at 09:53:49
Authors: Arjeh M. Cohen, Marc van Leeuwen, Bert Lisser.
> on monitor
> 5*7
Segmentation fault

This is on a x64 machine.
What goes wrong here is that the code uses the construct

void bad(char *format, ...) {
        va_list ap;
        va_start(ap, format);
        vfprintf(stdout, format, ap);
        if (monitor_mode)
                vfprintf(stderr, format, ap);
        va_end(ap);
}

where after the first call to vfprintf the va_list ap
has become undefined, and when in monitor mode a second
call to vfprintf invokes that routine with garbage parameters.
This leads to a segfault, or to multi-GB binary output files.

The obvious fix adapts the file output.c

Andries
[EMAIL PROTECTED]




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to