]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305365
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 6 Sep 2016 00:32:33 +0000 (00:32 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 6 Sep 2016 00:32:33 +0000 (00:32 +0000)
commit7756b14a7b3e19bb06f10911156386c5494b7f2c
treef49bc47803f9ba4e28bf02da5f493693f306f786
parent231139c31cc55aadd3819b331baf403fab0e2a45
MFC r305365

The bug:
$ echo x | awk '/[[:cntrl:]]/'
x

The NUL character in cntrl class truncates the pattern, and an empty
pattern matches anything. The patch skips NUL as a quick fix.

PR:     195792
Submitted by:   kdrakehp@zoho.com
Approved by:    bwk@cs.princeton.edu (the author)

git-svn-id: svn://svn.freebsd.org/base/stable/10@305447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/one-true-awk/b.c