This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]setup.exe: delete called for NULL pointer


I don't know, but many other places where it is called, it's protected by
   if (var)
      delete[] var;
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Pavel Tsekov" <ptsekov@gmx.net>
To: "Michael A Chase" <mchase@ix.netcom.com>
Cc: <cygwin-patches@cygwin.com>
Sent: Wednesday, April 10, 2002 13:01
Subject: Re: [PATCH]setup.exe: delete called for NULL pointer


> Wednesday, April 10, 2002, 7:20:30 PM, you wrote:
>
> MAC> I don't know if this delete call is a problem, but every other place
I found
> MAC> delete called in the setup.exe source, the variable was either
confirmed not
> MAC> NULL or the variable was certain to not be NULL.  In this case, the
variable
> MAC> either must be NULL or the buffer is too small.
>
> Isn't the 'delete' operator NULL aware ?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]