]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix ossl_param_bld_push_{utf8,octet}_string() / param_bld_convert()
authorRichard Levitte <levitte@openssl.org>
Wed, 21 Aug 2019 09:08:20 +0000 (11:08 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 21 Aug 2019 09:18:58 +0000 (11:18 +0200)
commitd32d304836caaca475c21a82b94e494898cb60c5
tree2d81a470ba2ae4cc7c01f812a380b3b7aa9fbcf9
parent5fa7789f1b46c6851df4cf8dde403b7f08bf93ea
Fix ossl_param_bld_push_{utf8,octet}_string() / param_bld_convert()

ossl_param_bld_push_{utf8,octet}_string() saved the constant string
pointer to a non-constant structure field, so we change that field to
a pointer to a constant.  We also modify param_bld_convert() to
pretend the resulting pointer for PTR types points to a constant as
well.

Completes #9649

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9651)
crypto/param_build.c
include/internal/param_build.h