home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Subject: Re: Bug in SAS/C 6.0 library : strstr ()
- Originator: walker@twix.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <Bxo2F1.KoC@unx.sas.com>
- Date: Fri, 13 Nov 1992 18:09:00 GMT
- References: <hadig.721653082@rama> <Bxnw8z.CvD@unx.sas.com>
- Nntp-Posting-Host: twix.unx.sas.com
- Organization: SAS Institute Inc.
- Keywords: strstr, SAS/C 6.0
- Lines: 26
-
-
- In article <Bxnw8z.CvD@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
- |> A NULL character array has no size, so trying to access a member of it
- |> at *all* is accessing "beyond the end" of it.
- |>
- |> I can put this in as an enhancement request for strstr(), but it can be
- |> argued that the current behavior is correct, at least according to ANSI
- |> specifications. Just check for NULL yourself before calling it.
-
- He's not passing a NULL, he is passing a null string: i.e. "".
-
- This should work - the existing behavior is a bug. It was present
- in V5.0, too, by the way. I doubt if this will make the patch
- unless something else occurs to make us pull it back from QA.
-
- |> Jim Cooper
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-