bin/150384: [patch] tr(1): tr mis-parses '[=]=]' equivalence class

Jilles Tjoelker jilles at stack.nl
Sun Sep 19 22:30:13 UTC 2010


The following reply was made to PR bin/150384; it has been noted by GNATS.

From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, richlowe at richlowe.net
Cc:  
Subject: Re: bin/150384: [patch] tr(1): tr mis-parses '[=]=]' equivalence
 class
Date: Mon, 20 Sep 2010 00:26:57 +0200

 This indeed seems a bug.
 
 The patch, however, introduces another bug: when parsing the string "[="
 it searches for ']' beyond the end of the string. An additional
 condition on s->str[2] is necessary to avoid this.
 
 -- 
 Jilles Tjoelker


More information about the freebsd-bugs mailing list