]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a bug where the result of rehash is unstable
authorminyong.ha <minyong.ha@lge.com>
Mon, 22 May 2023 05:44:13 +0000 (14:44 +0900)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 May 2023 13:46:40 +0000 (15:46 +0200)
commit31c94b5e1159b5435b2354e6525355ec33683ecc
tree3a57bf78a95dcf3470bca65bd05d07742a0cfcf7
parentb77826877be3bdd56e3e86887cb78ea010db90be
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@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21013)
apps/rehash.c