diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-02-02 13:53:00 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-02-03 17:04:05 +0100 |
commit | 32d596da36758446331c4202dad9494329545ec2 (patch) | |
tree | 87f7cade3c307bb79163f9ebee75a355a9b62c14 /lib/resolv.c | |
parent | 3e3f38de65f22db4497e0bff3f6b75354ae9463a (diff) |
lib: fix infinite loop on empty regexp matches in uc_split()
The regular expression `/()/` will match the empty string, causing the
match loop to never advance. Add extra logic to deal with this case,
similar to the empty separator string logic.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/resolv.c')
0 files changed, 0 insertions, 0 deletions