delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/28/07:33:05

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dxegen goes boom. is there a fix?
Date: 28 Feb 2002 12:25:23 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 20
Message-ID: <a5l7jj$1b8$1@antares.lu.erisoft.se>
References: <kllr7uo0aoausadjsk49mitf7t29mg5odc AT 4ax DOT com>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

There's a bug (mildly speaking):
Lines 89-91 and 115-119 of dxegen.c:
  if (fh.f_nscns != 1 || argc > 4)
  {
    char command[1024], *libdir;
...

    for(i=3;argv[i];i++)
    {
      strcat(command, argv[i]);
      strcat(command, " ");
    }

This will blow up when the command line becomes bigger than 1024.
The error is also present in CVS head.


Right,

						MartinS

- Raw text -


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