<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/string/strnlen.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2019-01-25T00:19:26+00:00</updated>
<entry>
<title>I am retiring my old email address;  replace it with my OpenBSD one.</title>
<updated>2019-01-25T00:19:26+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2019-01-25T00:19:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9395eef49000d5819f0d53eae86baa6e426dab86'/>
<id>urn:sha1:9395eef49000d5819f0d53eae86baa6e426dab86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Roll back uintptr_t cast changes after discussions with tedu, otto and</title>
<updated>2016-10-16T17:37:39+00:00</updated>
<author>
<name>dtucker</name>
<email></email>
</author>
<published>2016-10-16T17:37:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ad7af5571f1cbebffa221e1c4992bb2d8204b06f'/>
<id>urn:sha1:ad7af5571f1cbebffa221e1c4992bb2d8204b06f</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Cast pointers to uintptr_t to avoid potential signedness errors.</title>
<updated>2016-10-14T18:19:04+00:00</updated>
<author>
<name>dtucker</name>
<email></email>
</author>
<published>2016-10-14T18:19:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=334be4776e9619a5a075173d94155d509f240f3e'/>
<id>urn:sha1:334be4776e9619a5a075173d94155d509f240f3e</id>
<content type='text'>
Based on patch from yuanjie.huang at windriver.com via OpenSSH bz#2608,
with &amp; ok millert, ok deraadt.
</content>
</entry>
<entry>
<title>Add framework for resolving (pun intended) libc namespace issues, using</title>
<updated>2015-08-31T02:53:57+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-08-31T02:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c1ccbe216c72b17e063c4c16fa4904d87d295c99'/>
<id>urn:sha1:c1ccbe216c72b17e063c4c16fa4904d87d295c99</id>
<content type='text'>
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@
</content>
</entry>
<entry>
<title>mop up ifndef KERNEL goo; ok miod</title>
<updated>2014-06-10T04:17:37+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-06-10T04:17:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a13b202796a212c4c4e553e85d8bad24bbdffe07'/>
<id>urn:sha1:a13b202796a212c4c4e553e85d8bad24bbdffe07</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add strnlen() to libkern.</title>
<updated>2012-04-26T01:22:31+00:00</updated>
<author>
<name>matthew</name>
<email></email>
</author>
<published>2012-04-26T01:22:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a408b5102212757e89ebe89fb3d4aff0a93dfc91'/>
<id>urn:sha1:a408b5102212757e89ebe89fb3d4aff0a93dfc91</id>
<content type='text'>
ok deraadt
</content>
</entry>
<entry>
<title>Avoid using and end pointer since strnlen(string, -1) is legal</title>
<updated>2010-06-02T12:58:12+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2010-06-02T12:58:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=718f25c6853b9204ccdaaa6947c90c056989f2bd'/>
<id>urn:sha1:718f25c6853b9204ccdaaa6947c90c056989f2bd</id>
<content type='text'>
and would otherwise result in overflowing the end pointer and
cause strnlen() to return 0.  OK sthen@
</content>
</entry>
<entry>
<title>remove unused variable.</title>
<updated>2010-05-21T06:57:45+00:00</updated>
<author>
<name>chl</name>
<email></email>
</author>
<published>2010-05-21T06:57:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f8b346528f63f62066c4f543f9c55e988ae7cc2c'/>
<id>urn:sha1:f8b346528f63f62066c4f543f9c55e988ae7cc2c</id>
<content type='text'>
ok millert@ tedu@
</content>
</entry>
<entry>
<title>add posix_madvise, posix_memalign, strndup, and strnlen.  mostly from</title>
<updated>2010-05-18T22:24:55+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2010-05-18T22:24:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0800e860cf192fde131a6141be73b2e01cedd301'/>
<id>urn:sha1:0800e860cf192fde131a6141be73b2e01cedd301</id>
<content type='text'>
brad and millert, with hints from guenther, jmc, and otto I think.
ok previous.
</content>
</entry>
</feed>
