rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* matching bug
@ 2000-04-16  3:49 Decklin Foster
  0 siblings, 0 replies; only message 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:


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] only message in thread

only message in thread, other threads:[~2000-04-17 20:21 UTC | newest]

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

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/rc-list

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 rc-list rc-list/ https://inbox.vuxu.org/rc-list \
	public-inbox-index rc-list

Example config snippet for mirrors.
Newsgroup available over NNTP:

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