Skip to content
Commit e03ba84a authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by Herbert Xu
Browse files

[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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 67b4af29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment