[openssl/openssl] 16ec1b: Fix a bug where the result of rehash is unstable

Minyong Ha noreply at github.com
Thu May 25 13:49:06 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 16ec1b06bbac4d3130635f74cd0e09e40f222f8e
      https://github.com/openssl/openssl/commit/16ec1b06bbac4d3130635f74cd0e09e40f222f8e
  Author: minyong.ha <minyong.ha at lge.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M apps/rehash.c

  Log Message:
  -----------
  Fix a bug where the result of rehash is unstable

The root cause is that the file entries targeted for rehash are not actually sorted.
Sort was skipped because the compare function was null.
So a compare function has been implemented to allow file entries to be sorted.

Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21013)

(cherry picked from commit 31c94b5e1159b5435b2354e6525355ec33683ecc)




More information about the openssl-commits mailing list