Skip to content

Commit

Permalink
fix crash in ecp_nistz256_point_add_affine()
Browse files Browse the repository at this point in the history
The .rodata section with precomputed constant `ecp_nistz256_precomputed` needs to be
terminated by .previous. The lack of .previous makes mingw compiler to put code
into read only section. The exception is raised as soon as CPU attempts to execute
the code from read only section.

Fixes #24184
  • Loading branch information
Sashan committed Apr 18, 2024
1 parent 1692e0d commit 72d384e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/ec/asm/ecp_nistz256-x86_64.pl
Expand Up @@ -4736,6 +4736,7 @@ ()
}
print <<___;
.size ecp_nistz256_precomputed,.-ecp_nistz256_precomputed
.previous
___

$code =~ s/\`([^\`]*)\`/eval $1/gem;
Expand Down

0 comments on commit 72d384e

Please sign in to comment.