[openssl/openssl] 286053: tolower: refine the tolower code to avoid a memory...

pauli noreply at reply.github.openssl.org
Sun May 22 23:52:09 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 286053fc8f78e34828a576830ef879c021640aee
      https://github.openssl.org/openssl/openssl/commit/286053fc8f78e34828a576830ef879c021640aee
  Author: Pauli <pauli at openssl.org>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M crypto/ctype.c
    M include/crypto/ctype.h

  Log Message:
  -----------
  tolower: refine the tolower code to avoid a memory access

This improves the performance of this function and the ones that rely on it
(ossl_lh_strcasehash primarily).

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18344)


  Commit: fb4cdca053fb9d3f0e11eeaf31f4b4ff87f69a95
      https://github.openssl.org/openssl/openssl/commit/fb4cdca053fb9d3f0e11eeaf31f4b4ff87f69a95
  Author: Pauli <pauli at openssl.org>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M crypto/init.c
    M crypto/o_str.c
    M include/internal/cryptlib.h
    M providers/fips/fipsprov.c

  Log Message:
  -----------
  strcasecmp: implement strcasecmp and strncasecmp

Rather than relying on the locale code working, instead implement these
functions directly.

Fixes #18322

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18344)


Compare: https://github.openssl.org/openssl/openssl/compare/4d02d500aac8...fb4cdca053fb


More information about the openssl-commits mailing list