| www.delorie.com/djgpp/bugs/show.cgi | search |
__crt0_load_environment_file, in c1loadef.c, can overwrite memory
if the environment file djgpp.env does not have the expected syntax.
Demonstration:
c:> copy con djgpp.env
[info]
any text without equal sign
control/z
c:> info
<crashes my system>
The error occurs in the following part of c1loadef.c:
while (*sp != '=')
*dp = *sp ;
This bug can occur when a dos editor appends control/z to djgpp.env.
The last line processed than consists of the control/z alone.| webmaster donations bookstore | delorie software privacy |
| Copyright © 2010 by DJ Delorie | Updated Jul 2010 |