commit | ad092191a3f281c2d14089c86757305403a9de64 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sat Sep 03 21:58:50 2016 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Sep 23 22:50:16 2016 +0800 |
tree | c8677f1b8dd700ebe39c476dbb455622b2ccb0bc | |
parent | 4cf38c1ccd0c41715633c1b724c30e9c235099d1 [diff] |
expand - Fix dangling left square brackets in patterns When there is an unmatched left square bracket in patterns, pmatch will behave strangely and exhibit undefined behaviour. This patch (based on Harld van Dijk's original) fixes this by treating it as a literal left square bracket. Reported-by: Olof Johansson <olof@ethup.se> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>