delorie.com/djgpp/bugs/show.cgi   search  
Bug 000183

When Created: 10/23/1997 20:47:50
Against DJGPP version: 2.01
By whom: eldredge@ap.net
Abstract: Very large response files cause SIGSEGV
The response file is read into an alloca()'ed buffer at first.
So if your response file is bigger than the stack, a crash happens.

Solution added: 10/23/1997 20:58:12
By whom: eldredge@ap.net
My $^%&#@! browser won't let me post it here. 
But the patch was posted 20 Sep 1997 to djgpp@delorie.com
under the thread "Bug fix: very large response files"; maybe you can find it
in the archives. I will also try to send it to Thomas Demner's
patch site.
Eli Zaretskii says this is fixed in the WIP version, but by some
other method.
Basically, in src/libc/srt0/c1args.c, around line 247, you change
the alloca() call to c1xmalloc() and call free() at the end of the
function.

Fixed in version on 04/12/1999 11:00:01
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010