From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: Re: [PATCH 0/8] posix: glob fixes and refactor
Date: Tue, 12 Dec 2017 17:02:00 -0000 [thread overview]
Message-ID: <f0457cee-b6f3-765a-b8a2-d9fd43a06a46@linaro.org> (raw)
In-Reply-To: <1511272530-10936-1-git-send-email-adhemerval.zanella@linaro.org>
Ping.
On 21/11/2017 11:55, Adhemerval Zanella wrote:
> This patchset main target is to remove alloca usage on glob by
> using a specialized dynarray for C strings (struct char_array).
>
> It does not change any glob semantics, only internal glob buffer
> management. It also does not solve the potential stack overflow
> due recursive allocation from wildcard in patterns [1] (although
> an option would be go to pure dynamic char_array for this case).
>
> [1] http://lists.gnu.org/archive/html/bug-gnulib/2017-10/msg00056.html
>
> Adhemerval Zanella (8):
> malloc: Add specialized dynarray for C strings
> posix: Use char_array for internal glob dirname
> posix: Remove alloca usage for GLOB_BRACE on glob
> posix: Remove alloca usage on glob dirname
> posix: Use dynarray for globname in glob
> posix: Remove alloca usage on glob user_name
> posix: Use char_array for home_dir in glob
> posix: Remove all alloca usage in glob
>
> ChangeLog | 30 ++
> malloc/Makefile | 4 +-
> malloc/Versions | 7 +
> malloc/char_array-impl.c | 57 ++++
> malloc/char_array-skeleton.c | 279 +++++++++++++++++
> malloc/char_array.h | 53 ++++
> malloc/dynarray.h | 9 +
> malloc/dynarray_overflow_failure.c | 31 ++
> malloc/malloc-internal.h | 14 +
> malloc/tst-char_array.c | 112 +++++++
> posix/glob.c | 621 +++++++++++++++----------------------
> 11 files changed, 837 insertions(+), 380 deletions(-)
> create mode 100644 malloc/char_array-impl.c
> create mode 100644 malloc/char_array-skeleton.c
> create mode 100644 malloc/char_array.h
> create mode 100644 malloc/dynarray_overflow_failure.c
> create mode 100644 malloc/tst-char_array.c
>
prev parent reply other threads:[~2017-12-12 17:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-21 13:55 Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 3/8] posix: Remove alloca usage for GLOB_BRACE on glob Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 2/8] posix: Use char_array for internal glob dirname Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 8/8] posix: Remove all alloca usage in glob Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 4/8] posix: Remove alloca usage on glob dirname Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 5/8] posix: Use dynarray for globname in glob Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 1/8] malloc: Add specialized dynarray for C strings Adhemerval Zanella
2017-11-21 14:15 ` Andreas Schwab
2017-11-21 16:20 ` Adhemerval Zanella
2017-11-21 14:19 ` Andreas Schwab
2017-11-21 16:32 ` Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 6/8] posix: Remove alloca usage on glob user_name Adhemerval Zanella
2017-11-21 13:55 ` [PATCH 7/8] posix: Use char_array for home_dir in glob Adhemerval Zanella
2017-11-21 14:24 ` Andreas Schwab
2017-12-12 17:02 ` Adhemerval Zanella [this message]
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=f0457cee-b6f3-765a-b8a2-d9fd43a06a46@linaro.org \
--to=adhemerval.zanella@linaro.org \
--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).