mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Nathan McSween <nwmcsween@gmail.com>
To: musl@lists.openwall.com
Cc: Nathan McSween <nwmcsween@gmail.com>
Subject: [RFC PATCH 0/5] Add explicit_bzero, vectorize and 'normalize' various string functions
Date: Sat, 15 Jul 2017 19:55:36 +0000	[thread overview]
Message-ID: <20170715195541.3136-1-nwmcsween@gmail.com> (raw)

I have boot tested this with no issues.

Interesting or questionable parts include:
* The return after alignment.
* str[n]casecmp wordwise.
* the new hidden strscpy and memsset function.
* memsset instead of making a standalone explicit_bzero.
* using macros for various gcc attributes, etc.

Nathan McSween (5):
  string: vectorize various functions
  string: modify wordwise functions to match new style
  string: add strscpy and modify functions to use strscpy
  string: use strchrnul in strcasestr instead of bytewise iteration
  string: add memsset a 'secure' memset and bsd explicit_bzero

 src/string/explicit_bzero.c |  9 ++++++++
 src/string/memccpy.c        | 51 ++++++++++++++++++++++++---------------------
 src/string/memchr.c         | 37 ++++++++++++++++++--------------
 src/string/memcmp.c         | 28 +++++++++++++++++++++----
 src/string/memrchr.c        | 29 ++++++++++++++++++++------
 src/string/memsset.c        | 13 ++++++++++++
 src/string/stpcpy.c         | 37 +++++++++++++++++---------------
 src/string/stpncpy.c        | 32 +++++++++-------------------
 src/string/strcasecmp.c     | 34 ++++++++++++++++++++++++++----
 src/string/strcasestr.c     | 12 ++++++++---
 src/string/strchrnul.c      | 33 ++++++++++++++++-------------
 src/string/strcmp.c         | 27 +++++++++++++++++++++---
 src/string/strlcpy.c        | 27 +++---------------------
 src/string/strlen.c         | 27 ++++++++++++++----------
 src/string/strncasecmp.c    | 37 ++++++++++++++++++++++++++++----
 src/string/strncat.c        | 10 ++++-----
 src/string/strncmp.c        | 28 +++++++++++++++++++++++--
 src/string/strscpy.c        | 37 ++++++++++++++++++++++++++++++++
 18 files changed, 348 insertions(+), 160 deletions(-)
 create mode 100644 src/string/explicit_bzero.c
 create mode 100644 src/string/memsset.c
 create mode 100644 src/string/strscpy.c

-- 
2.13.2



             reply	other threads:[~2017-07-15 19:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-15 19:55 Nathan McSween [this message]
2017-07-15 19:55 ` [RFC PATCH 1/5] string: vectorize various functions Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 2/5] string: modify wordwise functions to match new style Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 3/5] string: add strscpy and modify functions to use strscpy Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 4/5] string: use strchrnul in strcasestr instead of bytewise iteration Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 5/5] string: add memsset a 'secure' memset and bsd explicit_bzero Nathan McSween

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=20170715195541.3136-1-nwmcsween@gmail.com \
    --to=nwmcsween@gmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).