summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-10-02 08:26:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-10-02 08:26:06 +0800
commit6c3f73bc536082fec38bd36e6c8a121033c68835 (patch)
tree8b1676ccf4edfd5b5b191fc9b248fbebfad131f8 /ChangeLog
parent[PARSER] Add nlprompt/nlnoprompt helpers (diff)
downloaddash-6c3f73bc536082fec38bd36e6c8a121033c68835.tar.gz
dash-6c3f73bc536082fec38bd36e6c8a121033c68835.zip
[EVAL] Fix use-after-free in dotrap/evalstring
The function dotrap calls evalstring using the stored trap string.
If evalstring then unsets that exact trap string then we will end
up using freed memory.

This patch fixes it by making evalstring always duplicate the string
before using it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f161a13..a56fc5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-10-02  Herbert Xu <herbert@gondor.apana.org.au>
+
+	* Fix use-after-free in dotrap/evalstring.
+
 2014-09-29  Herbert Xu <herbert@gondor.apana.org.au>
 
 	* Kill pgetc_macro.