]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r305365
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 6 Sep 2016 00:53:20 +0000 (00:53 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 6 Sep 2016 00:53:20 +0000 (00:53 +0000)
commit7d911ea9b84abf4f4ea1d1f3c1425862d8439093
tree58602b5f4799b23f948c52b423f59ed605dc989f
parent97c93d158cdeae0cabd1bdeb4391c22bf73ddc8d
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/9@305450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/one-true-awk/b.c