rc-list - mailing list for the rc(1) shell
 help / Atom feed
* matching bug
@ 2000-04-16  3:49 Decklin Foster
  0 siblings, 0 replies; 1+ messages in thread
From: Decklin Foster @ 2000-04-16  3:49 UTC (permalink / raw)
  To: rc

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


^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-16  3:49 matching bug Decklin Foster

rc-list - mailing list for the rc(1) shell

Archives are clonable: git clone --mirror http://inbox.vuxu.org/rc-list

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.rc-list


AGPL code for this site: git clone https://public-inbox.org/ public-inbox