Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 2010 22:30:12 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/150384: [patch] tr(1): tr mis-parses '[=]=]' equivalence class
Message-ID:  <201009192230.o8JMUCr7093716@freefall.freebsd.org>

index | next in thread | raw e-mail

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

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, richlowe@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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009192230.o8JMUCr7093716>