diff options
author | Phil Sutter <phil@nwl.cc> | 2022-06-08 13:45:13 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-06-11 11:47:03 +0200 |
commit | da5b32fb4656ab69fe1156eb7e36c7c961839e8a (patch) | |
tree | 5e966d3024ab173b69f88432200f1b13c2285aaa /libiptc | |
parent | 1bfb1d916e467e2bcbc44ce1a50a2be5c12b7ef8 (diff) |
extensions: string: Review parse_string() function
* Compare against sizeof(info->pattern) which is more clear than having
to know that this buffer is of size XT_STRING_MAX_PATTERN_SIZE
* Invert the check and error early to reduce indenting
* Pass info->patlen to memcpy() to avoid reading past end of 's'
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'libiptc')
0 files changed, 0 insertions, 0 deletions