[BusyBox] backref problem with sed?
Matt Kraai
kraai at alumni.carnegiemellon.edu
Mon Aug 20 15:24:57 UTC 2001
On Mon, Aug 20, 2001 at 02:22:26PM -0600, Jim Gleason (Admin) wrote:
> The problem is actually with line 549 of sed.c and its call to "regexec()".
> The 3rd parameter "sed_cmd->num_backrefs+1" forces at least one character to
> be matched (according to how I read the regexec man pages). This character
> is then output in the "print_subst_w_backrefs()" function called in the
> loop. I'm not sure what the correct solution is however, so I turn it over
> to the group for now.
I think we need to check that the backref indexes a match that is
in range, and that was actually matched. I just checked in code
which does so.
Matt
More information about the busybox
mailing list