]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tr: Fix '[=]=]' equivalence class.
authorjilles <jilles@FreeBSD.org>
Wed, 29 Sep 2010 22:24:18 +0000 (22:24 +0000)
committerjilles <jilles@FreeBSD.org>
Wed, 29 Sep 2010 22:24:18 +0000 (22:24 +0000)
commit26abe50bf104fe7fd516f6a3d577d8d487da19ec
tree1de27a5730d8afc2b3b9fe46d97090b19fd7c0e8
parent15603271578efc774546f5e1ce9fda0f2b5e5898
tr: Fix '[=]=]' equivalence class.

A closing bracket immediately after '[=' should not be treated as special.

Different from the submitted patch, a string ending with '[=' does not cause
access beyond the terminating '\0'.

PR: bin/150384
Submitted by: Richard Lowe
MFC after: 2 weeks
tools/regression/usr.bin/tr/regress.0c.out [new file with mode: 0644]
tools/regression/usr.bin/tr/regress.0d.out [new file with mode: 0644]
tools/regression/usr.bin/tr/regress.sh
usr.bin/tr/str.c