| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-developers-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-developers-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin-developers/> |
| List-Post: | <mailto:cygwin-developers AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-developers-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin-developers AT cygwin DOT com |
| Message-ID: | <3C7426A3.2FDF07F2@yahoo.com> |
| Date: | Wed, 20 Feb 2002 17:43:47 -0500 |
| From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
| Reply-To: | Earnie Boyd <Cygwin-Developers AT cygwin DOT com> |
| X-Mailer: | Mozilla 4.77 [en] (WinNT; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin-developers AT cygwin DOT com |
| Subject: | Re: null parameters to functions |
| References: | <01c901c1ba5b$e3dee330$0200a8c0 AT lifelesswks> <20020220222124 DOT GD3196 AT redhat DOT com> |
Christopher Faylor wrote: > > On Thu, Feb 21, 2002 at 09:13:56AM +1100, Robert Collins wrote: > >Remembering all the effort that went into sanitising various userland > >function parameters a few months ago... newlib suffers from similar > >flaws (I just noticed one with strcmp (0, foo);). > > > >Is this something worth fixing? > > Agh. How does linux handle this? Doe sit return EADDR or something? > IIRC, it's not an error in Linux land or most *nixes for that matter. It OS dependent on how addressing a null pointer is handled. Looking at the man page from HPUX 11 it says that null pointer values are treated as empty strings. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |