<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/strings.h, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2024-07-13T05:16:24Z</updated>
<entry>
<title>include: ssp: round out fortification of current set of headers</title>
<updated>2024-07-13T05:16:24Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-07-13T05:16:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cf8e5289a110954600f135024d1515a77d0ae34d'/>
<id>urn:sha1:cf8e5289a110954600f135024d1515a77d0ae34d</id>
<content type='text'>
ssp/ssp.h needed some improvements:
 - `len` isn't always a size_t, it may need casted
 - In some cases we may want to use a len that isn't specified as a
    parameter (e.g., L_ctermid), so __ssp_redirect() should be more
    flexible.
 - In other cases we may want additional checking, so pull all of the
    declaration bits out of __ssp_redirect_raw() so that some functions
    can implement the body themselves.

strlcat/strlcpy should be the last of the fortified functions that get
their own __*_chk symbols, and these cases are only done to be
consistent with the rest of the str*() set.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45679
</content>
</entry>
<entry>
<title>ssp: appease -Wgnu-statement-expression-from-macro-expansion</title>
<updated>2024-05-14T23:22:18Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-05-14T23:16:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5af6fbd72790173e128222943effc5aa95272ce9'/>
<id>urn:sha1:5af6fbd72790173e128222943effc5aa95272ce9</id>
<content type='text'>
It's a stupid warning, but some ports enable it by default and were
already defining _FORTIFY_SOURCE, thus exposing the new macros
immediately.  This at least fixes the libfido2 build, perhaps others as
well.

While we're here, fix a fresh build of stand w/ FORTIFY_SOURCE enabled
by not pulling in the ssp headers if _STANDALONE is defined.  We do not
have runtime support in libsa as of the time of writing.

Reported by:	netchild
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>Add a build knob for _FORTIFY_SOURCE</title>
<updated>2024-05-13T05:23:50Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-05-13T05:23:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9bfd3b4076a7b0dfd27ab22318e5113dc84fea28'/>
<id>urn:sha1:9bfd3b4076a7b0dfd27ab22318e5113dc84fea28</id>
<content type='text'>
In the future, we will Default to _FORTIFY_SOURCE=2 if SSP is enabled,
otherwise default to _FORTIFY_SOURCE=0.  For now we default it to 0
unconditionally to ease bisect across older versions without the new
symbols, and we'll put out a call for testing.

include/*.h include their ssp/*.h equivalents as needed based on the
knob. Programs and users are allowed to override FORTIFY_SOURCE in their
Makefiles or src.conf/make.conf to force it off.

Reviewed by:	des, markj
Relnotes:	yes
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32308
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b3e7694832e81d7a904a10f525f8797b753bf0d3'/>
<id>urn:sha1:b3e7694832e81d7a904a10f525f8797b753bf0d3</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-05-12T16:44:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4d846d260e2b9a3d4d0a701462568268cbfe7a5b'/>
<id>urn:sha1:4d846d260e2b9a3d4d0a701462568268cbfe7a5b</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>include: General further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-25T17:09:43Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-25T17:09:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e58eb3c437974277957187cfed4b9aa0c1a1e253'/>
<id>urn:sha1:e58eb3c437974277957187cfed4b9aa0c1a1e253</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>Add explicit_bzero(3) and its kernel counterpart.</title>
<updated>2014-10-07T04:54:11Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2014-10-07T04:54:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=78b59024b537e0993c0272fe57b8d23da5eaf0ce'/>
<id>urn:sha1:78b59024b537e0993c0272fe57b8d23da5eaf0ce</id>
<content type='text'>
Obtained from:	OpenBSD
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance.</title>
<updated>2014-05-30T01:09:07Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-05-30T01:09:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1bb07edbd41ba73e6bfc12bc9f85d92f7c4e312d'/>
<id>urn:sha1:1bb07edbd41ba73e6bfc12bc9f85d92f7c4e312d</id>
<content type='text'>
POSIX.1-2008 specifies that those two functions should be declared by
including &lt;strings.h&gt;, not &lt;string.h&gt; (the latter only has strcoll_l()
and strxfrm_l()):

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

Obtained from:	DragonFlyBSD
Reviewed by:	theraven
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>This should read #if __BSD_VISIBLE instead of #ifdef __BSD_VISIBLE.</title>
<updated>2010-01-04T18:46:54Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-01-04T18:46:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f40ea8b948f15392670df46fa8dd6f8641511c1b'/>
<id>urn:sha1:f40ea8b948f15392670df46fa8dd6f8641511c1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- Remove bcmp, bcopy, bzero, index, and rindex from the POSIX.1-2008</title>
<updated>2009-03-04T03:31:51Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2009-03-04T03:31:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dad39763d956073f94ebc17da694620568fd0630'/>
<id>urn:sha1:dad39763d956073f94ebc17da694620568fd0630</id>
<content type='text'>
  namespace.
- Add ffs to the XSI namespace.
</content>
</entry>
</feed>
