The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....
Go to file
Dimitry Andric c794d18822 Fix snprintf truncation in telnet
Building telnet with clang 18 results in the following warning:

  contrib/telnet/telnet/telnet.c:231:5: error: 'snprintf' will always be truncated; specified size is 10, but format string expands to at least 11 [-Werror,-Wformat-truncation]
    231 |     snprintf(temp2, sizeof(temp2), "%c%c%c%c....%c%c", IAC, SB, TELOPT_COMPORT,
	|     ^

The temp2 buffer is 10 chars, while the format string also consists of
10 chars. Therefore, snprintf(3) will truncate the last character, 'SE'
(end sub negotation) in this case.

Bump the buffer to 11 chars to avoid truncation.

MFC after:	3 days
2023-12-21 23:45:52 +01:00
.cirrus-ci
.github
bin cp: Move the -N flag in the manual page. 2023-12-14 21:02:06 +01:00
cddl libicp(_rescue)?: use asm versions for all 32-bit arm flavors 2023-12-13 20:00:35 +01:00
contrib Fix snprintf truncation in telnet 2023-12-21 23:45:52 +01:00
crypto Implement "strict key exchange" in ssh and sshd. 2023-12-18 08:22:22 -08:00
etc Proactively remove libc++ __tuple header file that became a directory 2023-12-13 19:53:17 +01:00
gnu misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
include dmu: Allow buffer fills to fail 2023-12-15 09:51:41 -08:00
kerberos5 sccs: Manual changes 2023-11-26 22:23:58 -07:00
lib Revert "power*/SYS.h: implement _SYSCALL_BODY() macro" 2023-12-21 21:37:09 +00:00
libexec libexec/rc/rc.initdiskless: make tar's path flexible 2023-12-15 03:46:44 -05:00
release release/Makefile.vm: Add cloudware overrides 2023-12-15 10:08:50 -08:00
rescue misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
sbin Add kenv .Xr in kldload(8) and loader.conf(5) 2023-12-20 21:17:38 -07:00
secure ossl: Move arm_arch.h to a common subdirectory 2023-12-04 12:29:11 -05:00
share rtnetlink.4: Fix a typo in the manual pag 2023-12-20 10:06:08 +01:00
stand Add kenv .Xr in kldload(8) and loader.conf(5) 2023-12-20 21:17:38 -07:00
sys pfil: don't leak pfil_head_t on interface detach 2023-12-21 10:53:49 -08:00
targets Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 2023-12-08 18:34:50 +01:00
tests libifconfig: Fix bridge status member list 2023-12-21 16:50:27 +01:00
tools nanobsd: Fix the fix to a typo 2023-12-21 10:13:44 -08:00
usr.bin renice: Clean up the tests a bit. 2023-12-20 17:59:37 +01:00
usr.sbin pwd_mkdb: Cosmetic nit. 2023-12-20 22:42:42 +01:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: stop forcibly installing pkg 2023-12-12 19:50:19 -05:00
.clang-format
.git-blame-ignore-revs git-blame-ignore-revs: OptionalObsoleteFiles.inc sorting commits 2023-11-15 17:47:02 +00:00
.gitattributes Revert "awk: Merge upstream 2nd Edition Awk Book" 2023-11-15 15:28:05 -07:00
.gitignore
.mailmap
CONTRIBUTING.md
COPYRIGHT misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
LOCKS
MAINTAINERS
Makefile pkgbase: create source package 2023-12-04 09:05:03 +01:00
Makefile.inc1 Make kldxref a bootstrap tool and use unconditionally 2023-12-13 21:43:10 +00:00
Makefile.libcompat
Makefile.sys.inc
ObsoleteFiles.inc ObsoleteFiles.inc: remove old libufs.so.7 after bump 2023-12-08 22:23:00 +01:00
README.md ota: Import One True Awk from 20231102 (254b979f32df) 2023-11-02 10:20:09 -06:00
RELNOTES RELNOTES: Add an entry about bhyve's slirp backend 2023-11-22 15:19:10 -05:00
UPDATING UPDATING: Add unset hint.acpi.0.disabled as workaround for no ACPI 2023-11-22 21:12:28 -07:00

README.md

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.