Message-ID: <3D0CBB42.D539FD@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: strange content in compiled file References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 25 Date: Sun, 16 Jun 2002 16:42:45 GMT NNTP-Posting-Host: 12.90.170.7 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1024245765 12.90.170.7 (Sun, 16 Jun 2002 16:42:45 GMT) NNTP-Posting-Date: Sun, 16 Jun 2002 16:42:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rafal 'Raf256' Maj wrote: > "Christian Görgen" wrote in > > > after compiling a simple HelloWorld.c-file with gcc, i found > > some strange content in the HelloWorld.exe and HelloWorld files. > > They contained code-sniplets auf websites i visited formerly and > > also contents of mails, wich are saved in outlook express > > folders. Anyone who did noticed the same? > > Or anyone knows what the reason is for that behavior. > > Unfortunatly i was not able to reproduce this yet. > > yes, this is a bug in MsDos / Windows that don't fill with zero's > new blocks of memory / diskspace It is not a bug, but it is a security leak. *IF* there is any bug anywhere I would put it in the gcc system, for failing to zero unused output areas. Here it is a bug primarily because it prevents making binary compares of output files. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!