CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2018/03/31 18:36:28

Modified files:
        lib/libcrypto/stack: stack.c 
        lib/libcrypto/man: OPENSSL_sk_new.3 

Log message:
When you replace an element in a sorted array with something
arbitrarily different, the array is in general no longer sorted.

This commit copies a small hidden bugfix from the OpenSSL commit
https://github.com/openssl/openssl/commit/fbb7b33b
the rest of which is merely cosmetics.

I discovered the bug independently while documenting sk_find(3).

Keep the library's idea of when an empty stack or a one-element stack
is sorted and when it is not bug-compatible with OpenSSL, even though
in fact, empty and one-element stacks are of course always sorted.

OK beck@

Reply via email to