ANDROID: xt_quota2: remove trailing junk which might have a digit in it
authorSam Liddicott <sam@liddicott.com>
Tue, 7 Jan 2014 17:21:53 +0000 (09:21 -0800)
committerTodd Kjos <tkjos@google.com>
Mon, 1 Nov 2021 23:54:58 +0000 (16:54 -0700)
commitc6b119ac8d394d6cfc14b5eb577657ea34a23af7
tree75fe1b9618060afb90b2514eafcdbb7628302177
parent8c55157c6eec4ffceb0a2d1d4d25dee1ec21dcff
ANDROID: xt_quota2: remove trailing junk which might have a digit in it

Make sure string only contains the characters specified by userspace.

Fix cherry-picked from xtables-extensions project

Signed-off-by: Sam Liddicott <sam@liddicott.com>
Bug: 196046570
Test: passed netd test suites
Fixes: 10cda83af99d ("ANDROID: netfilter: xt_quota2: adding the
original quota2 from xtables-addons")
Signed-off-by: Todd Kjos <tkjos@google.com>
(cherry picked from https://git.code.sf.net/p/xtables-addons/xtables-addons
bc2bcc383c70b293bd816c29523a952ca8736fb5)
Change-Id: I965448564906e5fbf0fe6d6414f44d9e257ea195
net/netfilter/xt_quota2.c