Mail Archives: djgpp-workers/2001/06/20/03:10:23
> From: "Mark E." <snowball3 AT softhome DOT net>
> Date: Wed, 20 Jun 2001 00:27:01 -0400
>
> Once the response file is processed, expand_wildcards is called which then
> calls glob to expand any wildcards, etc. glob allocates a 2000 byte buffer
> for an argument, but the mega argument is over 250K.
It sounds like we need to malloc that buffer in glob, and then add
code to all of its subroutines to check if the buffer's size is about
to be exceeded, and if so, realloc it.
This would fix the crashes, but the result of the test performed by
libtool will be meaningless anyway: it will probably be the amount of
available VM on the machine where the test runs. So it still makes
sense IMHO to introduce a special change somewhere to return something
reasonable, like 12K or some such. That's what I did for GDB in the
current CVS.
- Raw text -