<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib, branch stable/9</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F9</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F9'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-06-30T15:53:52Z</updated>
<entry>
<title>MFC r362623:</title>
<updated>2020-06-30T15:53:52Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-06-30T15:53:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d13ece4a9f138915e104c318854b1495d373a9d'/>
<id>urn:sha1:3d13ece4a9f138915e104c318854b1495d373a9d</id>
<content type='text'>
Fix copy/paste mistake in kvm_getswapinfo(3)

It seems this manpage was copied from kvm_getloadavg(3), but the
DIAGNOSTICS section was not updated completely. Update the section with
correct information about a return value of -1.
</content>
</entry>
<entry>
<title>MFC r361977: libusb: improve compatibility</title>
<updated>2020-06-16T12:21:55Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-06-16T12:21:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=37b296531c08c1fc8e38ee3e6172dea1ecba5777'/>
<id>urn:sha1:37b296531c08c1fc8e38ee3e6172dea1ecba5777</id>
<content type='text'>
Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API.
Descriptions and functionality for these derived from the
documentation at [0].  The current set of capabilities are all supported by
libusb.

These were detected as missing after updating net/freerdp to 2.1.1, which
attempted to use both.

[0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html
</content>
</entry>
<entry>
<title>MFC r361827:</title>
<updated>2020-06-08T09:35:32Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-06-08T09:35:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5751b9b781602c5be8abd93f1a91c964925f84ad'/>
<id>urn:sha1:5751b9b781602c5be8abd93f1a91c964925f84ad</id>
<content type='text'>
USB HID descriptors may push/pop the current state to allow
description of items residing in a so-called union. FreeBSD currently
only supports 4 such push levels.

If the push level is not restored within the processing of the same
HID item, an invalid memory location may be used for subsequent HID
item processing.

Verify that the push level is always valid when processing HID items.

Reported by:	Andy Nguyen (Google)
Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r357212: libfetch: fix urldecode buffer overrun</title>
<updated>2020-03-08T16:53:46Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-03-08T16:53:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3737a1f80b93fc06896ed08c7c79d03d6acd0753'/>
<id>urn:sha1:3737a1f80b93fc06896ed08c7c79d03d6acd0753</id>
<content type='text'>
Reported by:	Duncan Overbruck
Security:	CVE-2020-7450
</content>
</entry>
<entry>
<title>MFC r357298:</title>
<updated>2020-02-03T11:18:07Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-02-03T11:18:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=560b6a1f352529c1e59d9573677b52b68a302807'/>
<id>urn:sha1:560b6a1f352529c1e59d9573677b52b68a302807</id>
<content type='text'>
Add missing mutex unlock in failure case.

Differential Revision:	https://reviews.freebsd.org/D23430
Submitted by:	cem
Reported by:	Coverity
Coverity CID:	1368773
Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r349409 and r349410:</title>
<updated>2020-02-03T11:17:34Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-02-03T11:17:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=354bc7e49b35960a032f8bc00a9feaef153a1bc7'/>
<id>urn:sha1:354bc7e49b35960a032f8bc00a9feaef153a1bc7</id>
<content type='text'>
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all
devices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATE
flag. Make sure when the flag is not specified no arrival events are
generated for currently enumerated devices.

Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r352710:</title>
<updated>2019-09-28T08:57:29Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2019-09-28T08:57:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e7fdcb639695b6e874c7fcd957a009640b03261e'/>
<id>urn:sha1:e7fdcb639695b6e874c7fcd957a009640b03261e</id>
<content type='text'>
Do not left-shift a negative number (inducing undefined behavior in
C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate
computations that compute the IEEE-754 bit pattern for |2**k| for
integer |k|.

The implementations of exp(3), expf(3), expm1(3) and expm1f(3) need to
compute IEEE-754 bit patterns for 2**k in certain places.  (k is an
integer and 2**k is exactly representable in IEEE-754.)

Currently they do things like 0x3FF0'0000+(k&lt;&lt;20), which is to say they
take the bit pattern representing 1 and then add directly to the
exponent field to get the desired power of two.  This is fine when k is
non-negative.

But when k&lt;0 (and certain classes of input trigger this), this
left-shifts a negative number -- an operation with undefined behavior in
C and C++.

The desired semantics can be achieved by instead adding the
possibly-negative k to the IEEE-754 exponent bias to get the desired
exponent field, _then_ shifting that into its proper overall position.

(Note that in case of s_expm1.c and s_expm1f.c, there are SET_HIGH_WORD
and SET_FLOAT_WORD uses further down in each of these files that perform
shift operations involving k, but by these points k's range has been
restricted to 2 &lt; k &lt;= 56, and the shift operations under those
circumstances can't do anything that would be UB.)

Submitted by:	Jeff Walden, https://github.com/jswalden
Obtained from:	https://github.com/freebsd/freebsd/pull/411
Obtained from:	https://github.com/freebsd/freebsd/pull/412
</content>
</entry>
<entry>
<title>MFC r348797:</title>
<updated>2019-06-11T08:54:21Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2019-06-11T08:54:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=37de7bd0d7ed5185e7b9d90b6c9c78a36038c19a'/>
<id>urn:sha1:37de7bd0d7ed5185e7b9d90b6c9c78a36038c19a</id>
<content type='text'>
Fix for reading the configuration descriptor in libusb. Catch invalid
configuration descriptor reads early on to avoid issues with devices
that don't check for a valid USB configuration read request.

Submitted by:	takahiro.kurosawa@gmail.com
PR:		238412
</content>
</entry>
<entry>
<title>MFC r343572:</title>
<updated>2019-02-08T10:31:45Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2019-02-08T10:31:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e3b93c4fee24894ecf6c26476fb9f29b2165e7c7'/>
<id>urn:sha1:e3b93c4fee24894ecf6c26476fb9f29b2165e7c7</id>
<content type='text'>
Add support for Audio Sink and Audio Source profiles to sdpd(8).

This allows user-space programs like virtual_oss(8) to act
as a Bluetooth speaker device.

Sponsored by:		Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r338993:</title>
<updated>2018-10-05T07:52:28Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2018-10-05T07:52:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b118fb6cf545d66d00ad8eeac573c3a4a56f4f2b'/>
<id>urn:sha1:b118fb6cf545d66d00ad8eeac573c3a4a56f4f2b</id>
<content type='text'>
When multiple threads are involved receiving completion events in LibUSB
make sure there is always a master polling thread, by setting the "ctx_handler"
field in the context. Else the reception of completion events can stop.
This happens if event threads are created and destroyed during runtime.

Found by:		Ludovic Rousseau &lt;ludovic.rousseau+freebsd@gmail.com&gt;
PR:			231742
Sponsored by:		Mellanox Technologies
</content>
</entry>
</feed>
