]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix crash in ecp_nistz256_point_add_affine()
authorAlexandr Nedvedicky <sashan@openssl.org>
Sun, 21 Apr 2024 07:41:58 +0000 (09:41 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 22 May 2024 13:15:04 +0000 (15:15 +0200)
commit7884bedc04b90bcdd46cb52e525ebe6aa1bedae5
tree594254a6d4665e7ce967c6443c776b544ef0a72a
parenta73e07dbb7df4795c4ec537f19516b541fb8dd3c
fix crash in ecp_nistz256_point_add_affine()

The .rodata section with precomputed constant `ecp_nistz256_precomputed` needs to be
terminated by .text, because the ecp_nistz256_precomputed' happens to be the
first section in the file. The lack of .text makes code to arrive into the same
.rodata section where ecp_nistz256_precomputed is found. The exception is raised
as soon as CPU attempts to execute the code from read only section.

Fixes #24184

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24192)
crypto/perlasm/x86_64-xlate.pl