commit | 6c3f73bc536082fec38bd36e6c8a121033c68835 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu Oct 02 08:26:06 2014 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Oct 02 08:26:06 2014 +0800 |
tree | 8b1676ccf4edfd5b5b191fc9b248fbebfad131f8 | |
parent | 6df87cf1d4b7c0c490ab1803b863de10579df92e [diff] |
[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>