<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/bin/ksh, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/bin/ksh?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/bin/ksh?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-05-22T07:50:07Z</updated>
<entry>
<title>Fix the exit code when eval()uating a || compound list, it would</title>
<updated>2020-05-22T07:50:07Z</updated>
<author>
<name>benno</name>
<email>benno@openbsd.org</email>
</author>
<published>2020-05-22T07:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e5c8b1cbcc07771f1934cbbeef59f1326511c691'/>
<id>urn:sha1:e5c8b1cbcc07771f1934cbbeef59f1326511c691</id>
<content type='text'>
terminate the shell when running under -e.
See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=269067 and
Bug reported including fix by Leah Neukirchen, Thanks!
ok millert@
</content>
</entry>
<entry>
<title>Use proper function pointer type instead of void *</title>
<updated>2020-05-08T14:30:42Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2020-05-08T14:30:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=28297e90719f8bd86be407ff75bac9bb4f8a5a32'/>
<id>urn:sha1:28297e90719f8bd86be407ff75bac9bb4f8a5a32</id>
<content type='text'>
Mixing up function and void pointers isn't defined by POSIX or the
C standard.  POSIX only specifies that casting the result of dlsym(3) to
an appropriate function pointer works.

Avoid all this by using a typedef.

from Michael Forney, ok tb@
</content>
</entry>
<entry>
<title>Enforce that TMOUT is an integer literal to prevent command execution from</title>
<updated>2020-02-21T18:21:23Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2020-02-21T18:21:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=96c62c754df7e3260d67e44cafd133d26ed83d7c'/>
<id>urn:sha1:96c62c754df7e3260d67e44cafd133d26ed83d7c</id>
<content type='text'>
the environment at shell initialization time. During  startup, ksh calls
'eval typeset -i TMOUT="${TMOUT:-0}"'. which allows command injection via
arithmetic expansion, e.g., by setting TMOUT to 'x[`/bin/echo Hi &gt;&amp;2`]'.

Problem noted by Andras Farkas and tj, inspired by a similar issue in
AT&amp;T's ksh. Tested in snaps for two weeks.

"go for it" deraadt
</content>
</entry>
<entry>
<title>some corrections to CDPATH;</title>
<updated>2019-11-26T22:49:01Z</updated>
<author>
<name>jmc</name>
<email>jmc@openbsd.org</email>
</author>
<published>2019-11-26T22:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c6b77f58721d027d9dad33fbc91abaa1ff800a14'/>
<id>urn:sha1:c6b77f58721d027d9dad33fbc91abaa1ff800a14</id>
<content type='text'>
from chohag
</content>
</entry>
<entry>
<title>No need for &lt;sys/uio.h&gt; as writev(2) isn't used any more.</title>
<updated>2019-10-27T15:02:19Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-10-27T15:02:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fbcfde02f3961ff7e7df929279cf60c717d174ae'/>
<id>urn:sha1:fbcfde02f3961ff7e7df929279cf60c717d174ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't fail hard if we can't preallocate history storage.</title>
<updated>2019-10-27T14:58:52Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-10-27T14:58:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=79ad3eb6c5d13dd7b3b60dd4db9443f3cd14b9f1'/>
<id>urn:sha1:79ad3eb6c5d13dd7b3b60dd4db9443f3cd14b9f1</id>
<content type='text'>
Using alloc.c for the history array brings no value and prevents
easy handling of memory shortage.  Switch to plain reallocarray and
keep running if HISTSIZE is too big.

The allocation is still done upfront with no sanity checking, it would
probably be nicer to allocate space as needed.

Issue reported by thomas@habets.se who suggested a different approach.
</content>
</entry>
<entry>
<title>Add #include &lt;stdlib.h&gt; for mkstemp.</title>
<updated>2019-07-24T14:33:16Z</updated>
<author>
<name>bcallah</name>
<email>bcallah@openbsd.org</email>
</author>
<published>2019-07-24T14:33:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c6479af21847cdb0bda05c8418397a393786c725'/>
<id>urn:sha1:c6479af21847cdb0bda05c8418397a393786c725</id>
<content type='text'>
Spotted by maya@netbsd

ok deraadt@
</content>
</entry>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:34:58Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:34:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3aaa63eb46949490a39db9c6d82aacc8ee5d8551'/>
<id>urn:sha1:3aaa63eb46949490a39db9c6d82aacc8ee5d8551</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>Some asprintf() calls were checked &lt; 0, rather than the precise == -1.</title>
<updated>2019-06-27T18:03:36Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-27T18:03:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=95af8abf27078f6d0f9a407e501f247e19a4d49c'/>
<id>urn:sha1:95af8abf27078f6d0f9a407e501f247e19a4d49c</id>
<content type='text'>
ok millert nicm tb, etc
</content>
</entry>
<entry>
<title>Fix spelling</title>
<updated>2019-06-24T15:05:17Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-06-24T15:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c3663e2f7ab9b0f13f47498a9fc0a2101bc20687'/>
<id>urn:sha1:c3663e2f7ab9b0f13f47498a9fc0a2101bc20687</id>
<content type='text'>
</content>
</entry>
</feed>
