CAN-2004-1184]
* Commented out code that will permit EPS files to be provided as
arbitrary programs to be executed [src/psgen.c, CAN-2004-1185]
* Fixed buffer overflows [src/util.c, src/psgen.c, CAN-2004-1186]
--
else
{
ftail++;
strncpy (buf, fname, ftail - fname);
i = ftail - fname >= sizeof (buf)-1 ? sizeof (buf)-1 : ftail - fname;
buf[ftail - fname] = '\0';
strncpy (buf, fname, i);
buf[i] = '\0';
}
if (nup > 1)
return EOF;
/* Read more data. */
is->data_in_buf = fread (is->buf, 1, sizeof (is->buf), is->fp);
memset (is->buf, 0, sizeof (is->buf));
is->data_in_buf = fread (is->buf, 1, sizeof (is->buf)-1, is->fp);
is->bufpos = 0;
is->nreads++;