delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/06/07:02:55

From: George Lugovoy <glugovoy AT uic DOT rnd DOT runnet DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Is that bug ?
Date: Sat, 06 Feb 1999 11:30:24 +0000
Organization: University Internet Class
Lines: 18
Message-ID: <36BC27D0.41C67EA6@uic.rnd.runnet.ru>
NNTP-Posting-Host: titan.uic.rnd.runnet.ru
Mime-Version: 1.0
X-Trace: oberon.rnd.runnet.ru 918300621 12522 195.208.252.22 (6 Feb 1999 11:30:21 GMT)
X-Complaints-To: usenet AT oberon DOT rnd DOT runnet DOT ru
NNTP-Posting-Date: 6 Feb 1999 11:30:21 GMT
X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.0-CURRENT i386)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I has a program:

//////////////////////////////////////////////////////////////////////
#include <stdlib.h>

int main( void )
{
  char buffer[1024];
  memcpy( buffer, NULL, sizeof( buffer ) );
  return 0;
}
//////////////////////////////////////////////////////////////////////

Under DOS, Unix that program is crashed, BUT
under Windows that program won't crash.
What is it ? Is that bug ?

- George

- Raw text -


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