<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/bootparamd, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-02-09T17:26:18Z</updated>
<entry>
<title>Fix too small hostname buffer in bootparamd</title>
<updated>2022-02-09T17:26:18Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2022-02-06T14:25:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50cf1cf36898f8697c32c79e8e7fd279deeee514'/>
<id>urn:sha1:50cf1cf36898f8697c32c79e8e7fd279deeee514</id>
<content type='text'>
This fixes the following warning from clang 14:

usr.sbin/bootparamd/bootparamd/bootparamd.c:204:32: error: 'fscanf' may
overflow; destination buffer in argument 3 has size 255, but the
corresponding specifier may require size 256 [-Werror,-Wfortify-source]

The MAX_MACHINE_NAME macro indicates the maximum number of bytes in a
machine name, but it does not include the NUL terminator required for
scanf.

MFC after:	 3 days

(cherry picked from commit d310bf3867b4168e57365196c3a31797c0538097)
</content>
</entry>
<entry>
<title>bootparamd: Add missing __unused mark.</title>
<updated>2021-01-02T15:40:34Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2021-01-02T15:40:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8c45fe5d8ecda4be7564aadaa50712790c6c0a6f'/>
<id>urn:sha1:8c45fe5d8ecda4be7564aadaa50712790c6c0a6f</id>
<content type='text'>
e03764d931d820185a019334259b18df2e3f6b6c did not catch all unused
variables.

Submitted by:		otis
MFC after:		2 weeks
Differential Revision:	https://reviews.freebsd.org/D27894
</content>
</entry>
<entry>
<title>bootparamd: Fix several warnings and increase warn level to 6.</title>
<updated>2021-01-02T03:36:09Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2021-01-02T03:36:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e03764d931d820185a019334259b18df2e3f6b6c'/>
<id>urn:sha1:e03764d931d820185a019334259b18df2e3f6b6c</id>
<content type='text'>
- Increase WARNS to 6.
- Except -Wcast-align and -Wincompatible-pointer-types-discards-qualifiers
  checks.
- Use ANSI C prototype.
- Statically variables and functions.
- Add extern declaration for global variables.
- Rename local variables to resolve shadow warnings.

PR:		71667
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Update dependencies.</title>
<updated>2017-10-31T00:07:04Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:07:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea825d02749f382c3f7e17f28247f20a48733eab'/>
<id>urn:sha1:ea825d02749f382c3f7e17f28247f20a48733eab</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Don't leak bpf on early return when YP isn't defined (NIS support)</title>
<updated>2017-08-17T20:41:28Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-08-17T20:41:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c78c36cd9c6af40b97241a455bd3022708b30095'/>
<id>urn:sha1:c78c36cd9c6af40b97241a455bd3022708b30095</id>
<content type='text'>
MFC after:	1 week
Reported by:	cppcheck
</content>
</entry>
<entry>
<title>Fix WARNS</title>
<updated>2017-08-17T20:37:01Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-08-17T20:37:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c354522292c3f8ce80fbffd71d5c71a3b59a2946'/>
<id>urn:sha1:c354522292c3f8ce80fbffd71d5c71a3b59a2946</id>
<content type='text'>
- Remove ad hoc inet_ntoa prototype declaration; it's already handled
  by the included headers.
- De-K&amp;Rify the function prototypes for eachres_whoami(..),
  eachres_getfile(..), and main(..).

MFC after:	1 week
PR:		71667
Tested with:	clang (5.0), gcc (4.2.1, 5)
</content>
</entry>
<entry>
<title>Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP.</title>
<updated>2017-06-19T20:47:24Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-06-19T20:47:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c99b67a7947ea215f9c1d44ec022680e98920cd1'/>
<id>urn:sha1:c99b67a7947ea215f9c1d44ec022680e98920cd1</id>
<content type='text'>
Since buildenv exports SYSROOT all of these uses will now look in
WORLDTMP by default.

sys/boot/efi/loader/Makefile
        A LIBSTAND hack is no longer required for buildenv.

MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Fix uninitialized variable in bootparamd.c</title>
<updated>2017-05-31T14:53:50Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-05-31T14:53:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=43a251d687a16a671f578ad3edfd73879e27e23b'/>
<id>urn:sha1:43a251d687a16a671f578ad3edfd73879e27e23b</id>
<content type='text'>
Restore line that was accidentally deleted in change 318790

Reported by:	Coverity
CID:		1375855
MFC after:	1 week
X-MFC-With:	318790
Sponsored by:	Spectra Logic Corp
</content>
</entry>
<entry>
<title>Fix a buffer overflow in bootparamd(8)</title>
<updated>2017-05-24T16:30:38Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-05-24T16:30:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e3c30637d46e0684447084f152a849f8e7acc6b'/>
<id>urn:sha1:6e3c30637d46e0684447084f152a849f8e7acc6b</id>
<content type='text'>
If /etc/bootparams contains a line with an excessively long pathname, and a
client asks for that path, then bootparamd will overflow a buffer and crash
while parsing that line.  This is not remotely exploitable since it requires
a malformed /etc/bootparams file.

Reported by:	Coverity
CID:		1305954
MFC after:	1 week
Sponsored by:	Spectra Logic Corp
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Regenerate without local dependencies.</title>
<updated>2016-02-24T17:20:11Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2016-02-24T17:20:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bd18fd57db1df29da1a3adf94d47924a977a29c2'/>
<id>urn:sha1:bd18fd57db1df29da1a3adf94d47924a977a29c2</id>
<content type='text'>
These are no longer needed after the recent 'beforebuild: depend' changes
and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports
skipping 'make depend'.

Sponsored by:	EMC / Isilon Storage Division
</content>
</entry>
</feed>
