From 4e2fd4cca630e887cabf030d926ca21e9d842634 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 11 Jan 2007 19:31:27 +0100 Subject: Avoid a leak in expr's implementation of the ":" (match) operator. * src/expr.c (docolon): Free the regexp buffer using regfree, rather than doing it manually, being careful to set fastmap to NULL first. Free any re_regs.start and .end members, if necessary. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 6e4e9be31..84bda39a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-01-11 Jim Meyering + Avoid a leak in expr's implementation of the ":" (match) operator. + * src/expr.c (docolon): Free the regexp buffer using regfree, rather + than doing it manually, being careful to set fastmap to NULL first. + Free any re_regs.start and .end members, if necessary. + * tests/misc/test-diag: Work also when libc's error function reports the entire program name ("../../src/test"), rather than just the final component. -- cgit v1.2.3-70-g09d2