<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/gen/getusershell.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/gen/getusershell.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/gen/getusershell.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-12-10T02:35:16Z</updated>
<entry>
<title>Remove includes that are no longer neeed after tedu's simplification.</title>
<updated>2019-12-10T02:35:16Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2019-12-10T02:35:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=10db3397df717fb38d285c5b7af079e997bd034c'/>
<id>urn:sha1:10db3397df717fb38d285c5b7af079e997bd034c</id>
<content type='text'>
OK jca@
</content>
</entry>
<entry>
<title>rewrite guts of getusershell() to avoid possibility of overflow.</title>
<updated>2015-12-08T16:28:26Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2015-12-08T16:28:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7a4171b0ac9426e73c417e6fdadbbc40d835f400'/>
<id>urn:sha1:7a4171b0ac9426e73c417e6fdadbbc40d835f400</id>
<content type='text'>
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory on demand.
i.e., save memory by wasting it. also be a little stricter about parsing.
after discussion with tobias. (with a bug fix from patrick keshishian)
descended from bug glibc bug 18660 via tobias.
</content>
</entry>
<entry>
<title>remove null check before free. from Michael McConville</title>
<updated>2015-09-14T16:09:13Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2015-09-14T16:09:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=183195fb2f7518b2cd4510b5b8f442268aefa790'/>
<id>urn:sha1:183195fb2f7518b2cd4510b5b8f442268aefa790</id>
<content type='text'>
ok semarie
</content>
</entry>
<entry>
<title>SIZE_MAX is standard, we should be using it in preference to the</title>
<updated>2015-02-06T23:21:58Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2015-02-06T23:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4239b8225fa4f64aecb5a0fe486abd01f9e64ae2'/>
<id>urn:sha1:4239b8225fa4f64aecb5a0fe486abd01f9e64ae2</id>
<content type='text'>
obsolete SIZE_T_MAX.  OK miod@ beck@
</content>
</entry>
<entry>
<title>When fopen()ing internal to libc (the API doesn't support the use</title>
<updated>2014-09-15T06:15:48Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2014-09-15T06:15:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=241db05998f1091df691c528a16b6ca3ab8719d3'/>
<id>urn:sha1:241db05998f1091df691c528a16b6ca3ab8719d3</id>
<content type='text'>
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.

ok miod@
</content>
</entry>
<entry>
<title>Fix one more off-by-one (making it an off-by-two):</title>
<updated>2014-01-19T21:01:06Z</updated>
<author>
<name>tobias</name>
<email>tobias@openbsd.org</email>
</author>
<published>2014-01-19T21:01:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f0b13b6daea08b8d3c68a5c5569f8dfa1fc77095'/>
<id>urn:sha1:f0b13b6daea08b8d3c68a5c5569f8dfa1fc77095</id>
<content type='text'>
1. integer division can give an off-by-one (like 2/3 = 0 for calloc)
2. ending the shells array with NULL takes space, too

ok millert@
</content>
</entry>
<entry>
<title>Fix off-by-one on specially crafted /etc/shells file.</title>
<updated>2014-01-17T20:51:54Z</updated>
<author>
<name>tobias</name>
<email>tobias@openbsd.org</email>
</author>
<published>2014-01-17T20:51:54Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=74f2eca76a12567ff995c2d1b2adc88e48bef133'/>
<id>urn:sha1:74f2eca76a12567ff995c2d1b2adc88e48bef133</id>
<content type='text'>
ok gilles@, millert@
</content>
</entry>
<entry>
<title>most obvious unsigned char casts for ctype</title>
<updated>2013-11-24T23:51:28Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2013-11-24T23:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dfe5467e3c6b93ccc8be21818dca4babdc79fd90'/>
<id>urn:sha1:dfe5467e3c6b93ccc8be21818dca4babdc79fd90</id>
<content type='text'>
ok jca krw ingo
</content>
</entry>
<entry>
<title>Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,</title>
<updated>2013-09-30T12:02:30Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2013-09-30T12:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=69245ebdc94b271c4e1a54cf0b76d96467dc638e'/>
<id>urn:sha1:69245ebdc94b271c4e1a54cf0b76d96467dc638e</id>
<content type='text'>
MAXNAMLEN or MAXLOGNAME where possible.  OK deraadt@
</content>
</entry>
<entry>
<title>range check st_size before calling calloc()</title>
<updated>2012-04-06T20:54:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2012-04-06T20:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b5ce4011f41afcf3a7516c6276fd41377f0fc683'/>
<id>urn:sha1:b5ce4011f41afcf3a7516c6276fd41377f0fc683</id>
<content type='text'>
ok millert
</content>
</entry>
</feed>
