]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix undefined behaviour in X509_NAME_cmp()
authorMatt Caswell <matt@openssl.org>
Wed, 16 May 2018 10:59:47 +0000 (11:59 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 21 May 2018 09:31:07 +0000 (10:31 +0100)
commitf2bb6b8d81944261f65e3231f6eb707a9185162a
tree43d58a901728966da1a51a0a571c5f2eade5d24c
parentec91c3db211c071248ef3a0b6dd9ef5ebdca5ab5
Fix undefined behaviour in X509_NAME_cmp()

If the lengths of both names is 0 then don't attempt to do a memcmp.

Issue reported by Simon Friedberger, Robert Merget and Juraj Somorovsky.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6291)

(cherry picked from commit 511190b691183a1fb160e7e05e2974dc73cab0c6)
crypto/x509/x509_cmp.c