strnlen ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/strnlen.html
Portability problems fixed by Gnulib:
strnlen (s, maxlen) can crash if
s is null-terminated but address arithmetic overflows
(i.e., s + maxlen < s):
Android 5.0.
Portability problems not fixed by Gnulib: