diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-04-06 20:01:43 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-04-08 07:30:45 +0000 |
commit | e94ce889f011b15f7f98b16ae4ddb2123c7c9b0f (patch) | |
tree | a152cdfa43b6eae6b1389ec44662b8316c321965 /include | |
parent | c53ca915943e29207e40abc79f72ae6a16f3ed66 (diff) |
ipaccess-config: use POSIX regex for Unit ID format check
Instead of counting digits and slashes of the IPA Unit ID manually,
use POSIX regex functions, so the code is easier to maintain and
read. As a bonus, this fixes CID#188854: variable 'remain_slash'
was of type 'uint8_t', so it could never be lower than zero.
Change-Id: Id613bf650833dd38eaad08fdfffdf8dbe2f002b1
Related: CID#188854 Unsigned integer overflow
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions