From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: [PATCH 0/2] strlcpy/strlcat/wcslcpy/wcscat implementation
Date: Wed, 05 Apr 2023 13:20:49 +0200 [thread overview]
Message-ID: <cover.1680693362.git.fweimer@redhat.com> (raw)
These two patches add support for four functions planned for addition to
POSIX, plus their fortified variants. They are available with
_DEFAULT_SOURCE because the BSDs expose them by default, oto.
Tested on i686-linux-gnu and x86_64-linux-gnu. Built with
build-many-glibcs.py (on all ABIs, but not all targets because disk
space is no longer sufficient on the lab machines I have access to).
Paul, the Austin Groups issue you raised has been closed. Do you keep
your sustained objection to adding these functions to glibc?
Thanks,
Florian
Florian Weimer (2):
Implement strlcpy and strlcat [BZ #178]
Add the wcslcpy, wcslcat functions
NEWS | 6 ++
debug/Makefile | 3 +-
debug/Versions | 6 ++
debug/strlcat_chk.c | 32 +++++++
debug/strlcpy_chk.c | 32 +++++++
debug/tst-fortify.c | 48 ++++++++++
debug/wcslcat_chk.c | 31 +++++++
debug/wcslcpy_chk.c | 31 +++++++
include/string.h | 4 +
include/wchar.h | 5 +
manual/string.texi | 74 +++++++++++++++
string/Makefile | 4 +
string/Versions | 4 +
string/bits/string_fortified.h | 36 +++++++
string/string.h | 13 +++
string/strlcat.c | 61 ++++++++++++
string/strlcpy.c | 48 ++++++++++
string/tst-strlcat.c | 84 +++++++++++++++++
string/tst-strlcpy.c | 68 ++++++++++++++
sysdeps/mach/hurd/i386/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/aarch64/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/alpha/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/arc/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/arm/be/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/arm/le/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/csky/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/hppa/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/i386/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/ia64/libc.abilist | 8 ++
.../sysv/linux/loongarch/lp64/libc.abilist | 8 ++
.../sysv/linux/m68k/coldfire/libc.abilist | 8 ++
.../unix/sysv/linux/m68k/m680x0/libc.abilist | 8 ++
.../sysv/linux/microblaze/be/libc.abilist | 8 ++
.../sysv/linux/microblaze/le/libc.abilist | 8 ++
.../sysv/linux/mips/mips32/fpu/libc.abilist | 8 ++
.../sysv/linux/mips/mips32/nofpu/libc.abilist | 8 ++
.../sysv/linux/mips/mips64/n32/libc.abilist | 8 ++
.../sysv/linux/mips/mips64/n64/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/nios2/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/or1k/libc.abilist | 8 ++
.../linux/powerpc/powerpc32/fpu/libc.abilist | 8 ++
.../powerpc/powerpc32/nofpu/libc.abilist | 8 ++
.../linux/powerpc/powerpc64/be/libc.abilist | 8 ++
.../linux/powerpc/powerpc64/le/libc.abilist | 8 ++
.../unix/sysv/linux/riscv/rv32/libc.abilist | 8 ++
.../unix/sysv/linux/riscv/rv64/libc.abilist | 8 ++
.../unix/sysv/linux/s390/s390-32/libc.abilist | 8 ++
.../unix/sysv/linux/s390/s390-64/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/sh/be/libc.abilist | 8 ++
sysdeps/unix/sysv/linux/sh/le/libc.abilist | 8 ++
.../sysv/linux/sparc/sparc32/libc.abilist | 8 ++
.../sysv/linux/sparc/sparc64/libc.abilist | 8 ++
.../unix/sysv/linux/x86_64/64/libc.abilist | 8 ++
.../unix/sysv/linux/x86_64/x32/libc.abilist | 8 ++
wcsmbs/Makefile | 8 +-
wcsmbs/Versions | 2 +
wcsmbs/bits/wchar2.h | 37 ++++++++
wcsmbs/tst-wcslcat.c | 93 +++++++++++++++++++
wcsmbs/tst-wcslcpy.c | 78 ++++++++++++++++
wcsmbs/wchar.h | 13 +++
wcsmbs/wcslcat.c | 60 ++++++++++++
wcsmbs/wcslcpy.c | 46 +++++++++
62 files changed, 1204 insertions(+), 3 deletions(-)
create mode 100644 debug/strlcat_chk.c
create mode 100644 debug/strlcpy_chk.c
create mode 100644 debug/wcslcat_chk.c
create mode 100644 debug/wcslcpy_chk.c
create mode 100644 string/strlcat.c
create mode 100644 string/strlcpy.c
create mode 100644 string/tst-strlcat.c
create mode 100644 string/tst-strlcpy.c
create mode 100644 wcsmbs/tst-wcslcat.c
create mode 100644 wcsmbs/tst-wcslcpy.c
create mode 100644 wcsmbs/wcslcat.c
create mode 100644 wcsmbs/wcslcpy.c
base-commit: 16439f419b270184ec501c531bf20d83b6745fb0
--
2.39.2
next reply other threads:[~2023-04-05 11:20 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 11:20 Florian Weimer [this message]
2023-04-05 11:20 ` [PATCH 1/2] Implement strlcpy and strlcat [BZ #178] Florian Weimer
2023-04-05 13:18 ` Adhemerval Zanella Netto
2023-04-06 9:18 ` Florian Weimer
2023-04-06 14:22 ` Siddhesh Poyarekar
2023-04-06 15:09 ` Florian Weimer
2023-04-06 21:29 ` Alejandro Colomar
2023-04-11 14:28 ` Siddhesh Poyarekar
2023-04-20 10:55 ` Florian Weimer
2023-04-20 11:45 ` Siddhesh Poyarekar
2023-04-21 17:45 ` Florian Weimer
2023-04-06 21:21 ` Alejandro Colomar
2023-04-06 21:35 ` Florian Weimer
2023-04-06 22:15 ` Alejandro Colomar
2023-04-06 22:19 ` Alejandro Colomar
2023-04-06 22:34 ` Alejandro Colomar
2023-04-08 22:08 ` Paul Eggert
2023-04-09 15:29 ` Paul Eggert
2023-04-13 11:37 ` Florian Weimer
2023-04-13 14:39 ` Paul Eggert
2023-04-13 17:59 ` Paul Eggert
2023-04-20 8:07 ` Florian Weimer
2023-04-21 19:00 ` Paul Eggert
2023-04-28 8:49 ` Florian Weimer
2023-04-05 11:20 ` [PATCH 2/2] Add the wcslcpy, wcslcat functions Florian Weimer
2023-04-08 22:09 ` Paul Eggert
2023-04-05 12:30 ` [PATCH 0/2] strlcpy/strlcat/wcslcpy/wcscat implementation Alejandro Colomar
2023-04-08 22:05 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1680693362.git.fweimer@redhat.com \
--to=fweimer@redhat.com \
--cc=eggert@cs.ucla.edu \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).