www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000100

When Created: 07/25/1996 03:15:24
Against DJGPP version: 2.00
By whom: jrubin@bix.com
Abstract: __crt0_load_environment_file can overwrite memory.
__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.

Fixed in version 2.01 on 07/26/1996 00:41:37
By whom: dj@delorie.com



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010