In the RC versions, both pipe.c and forward.c have code that reads:

    ...strblock = (char *)my_malloc(READ_BLOCK_SIZE)...

    ....

    /* fread won't do this for us! */
    strblock[usedmem]='\0';

which sometimes causes a segfault when reading large files. I notice that the CVS version of pipe.c has been fixed to read:

    ...strblock = (char *)my_malloc(READ_BLOCK_SIZE + 1)...

but not forward.c.



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

Reply via email to