|
Message-Id: <20170715195541.3136-1-nwmcsween@gmail.com> Date: Sat, 15 Jul 2017 19:55:36 +0000 From: Nathan McSween <nwmcsween@...il.com> To: musl@...ts.openwall.com Cc: Nathan McSween <nwmcsween@...il.com> Subject: [RFC PATCH 0/5] Add explicit_bzero, vectorize and 'normalize' various string functions 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.