[TEXTSEARCH]: Do not allow zero length patterns in the textsearch infrastructure
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Nov 2007 13:03:52 +0000 (00:03 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Nov 2007 13:03:52 +0000 (00:03 +1100)
commite03ba84adb62fbc6049325a5bc00ef6932fa5e39
tree37a6d1206d6480bbbcda98a8b636a2071a6bf31c
parent67b4af297033f5f65999885542f95ba7b562848a
[TEXTSEARCH]: Do not allow zero length patterns in the textsearch infrastructure

If a zero length pattern is passed then return EINVAL.
Avoids infinite loops (bm) or invalid memory accesses (kmp).

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/textsearch.c