History log of /openbsd-src/lib/libc/string/strnlen.c (Results 1 – 9 of 9)
Revision Date Author Comments
# bf198cc6 25-Jan-2019 millert <millert@openbsd.org>

I am retiring my old email address; replace it with my OpenBSD one.


# 5cc8e0ff 16-Oct-2016 dtucker <dtucker@openbsd.org>

Roll back uintptr_t cast changes after discussions with tedu, otto and
others.

C11 6.5.6.9 says:
When two pointers are subtracted, both shall point to elements of the
same array object, or one past

Roll back uintptr_t cast changes after discussions with tedu, otto and
others.

C11 6.5.6.9 says:
When two pointers are subtracted, both shall point to elements of the
same array object, or one past the last element of the array object; the
result is the difference of the subscripts of the two array elements.

In these cases the objects are arrays of char so the result is defined,
and we believe that the report is based on a compiler incorrectly trapping
on defined behaviour.

show more ...


# df4c0a41 14-Oct-2016 dtucker <dtucker@openbsd.org>

Cast pointers to uintptr_t to avoid potential signedness errors.
Based on patch from yuanjie.huang at windriver.com via OpenSSH bz#2608,
with & ok millert, ok deraadt.


# 9b9d2a55 31-Aug-2015 guenther <guenther@openbsd.org>

Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that

Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h. Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

tests clean on i386, amd64, sparc64, powerpc, and mips64

naming feedback from kettenis@ and millert@
ok kettenis@

show more ...


# 6ca4427d 10-Jun-2014 deraadt <deraadt@openbsd.org>

mop up ifndef KERNEL goo; ok miod


# f264d37a 26-Apr-2012 matthew <matthew@openbsd.org>

Add strnlen() to libkern.

ok deraadt


# d2b9bf02 02-Jun-2010 millert <millert@openbsd.org>

Avoid using and end pointer since strnlen(string, -1) is legal
and would otherwise result in overflowing the end pointer and
cause strnlen() to return 0. OK sthen@


# 40e1fd29 21-May-2010 chl <chl@openbsd.org>

remove unused variable.

ok millert@ tedu@


# 243f3935 18-May-2010 tedu <tedu@openbsd.org>

add posix_madvise, posix_memalign, strndup, and strnlen. mostly from
brad and millert, with hints from guenther, jmc, and otto I think.
ok previous.