From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from newton.hartwick.edu ([147.205.85.10]) by hawkwind.utcs.toronto.edu with SMTP id <25522>; Mon, 17 Apr 2000 16:21:34 -0400 Received: from c26469-a.clnvl1.ct.home.com (147.205.111.20 [147.205.111.20]) by newton.hartwick.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id HRZAVXCB; Sat, 15 Apr 2000 23:48:09 -0400 Received: by c26469-a.clnvl1.ct.home.com (sSMTP sendmail emulation); Sat, 15 Apr 2000 23:49:45 +4400 Date: Sat, 15 Apr 2000 23:49:45 -0400 From: Decklin Foster To: rc@hawkwind.utcs.toronto.edu Subject: matching bug Message-ID: <20000415234945.A16383@photek.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i Organization: Society for the Prevention of Cruelty to Vermin I was reminded today that I planned to forward this here: http://www.debian.org/Bugs/db/62/62339.html This is a bug report which notes that rc segfaults if you attempt to match '*' against the null list ("~ () '*'"). unquoted * is ok. A quick trace shows that p->m is null (from what i can gather, this means there are no metacharacters in p->w. documentation on the List structure would be appreciated). This is the line we crash on: if (p->w[i] != '*' || p->m[i] != 1) I'm a bit wary of just taking a check for non-NULL p->m on here, since I don't understand what that means (other than the fact that with an unquoted *, it's a pointer to "\001"). It seems like the function really ought to be rewritten. -- Written with 100% free software. Please support the following websites: www.debian.org www.noamazon.com www.gnu.org www.opendvd.org lpf.ai.mit.edu