summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-01-11 19:31:27 +0100
committerJim Meyering <jim@meyering.net>2007-01-11 19:31:27 +0100
commit4e2fd4cca630e887cabf030d926ca21e9d842634 (patch)
tree32510c51c1ce77b71fead6cea9fe093e714b596e /ChangeLog
parentc6357f0cabfa46535285d5401cdf28d5d4469670 (diff)
downloadcoreutils-4e2fd4cca630e887cabf030d926ca21e9d842634.tar.xz
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e4e9be31..84bda39a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-01-11 Jim Meyering <jim@meyering.net>
+ 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.