Skip to content

Commit 57c4b9f

Browse files
Andy Polyakovmattcaswell
authored andcommitted
bn/asm/x86_64-mont.pl: fix for CVE-2016-7055 (Low severity).
Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 2fac86d)
1 parent c210840 commit 57c4b9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crypto/bn/asm/x86_64-mont.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,18 +1148,17 @@
11481148
mulx 2*8($aptr),%r15,%r13 # ...
11491149
adox -3*8($tptr),%r11
11501150
adcx %r15,%r12
1151-
adox $zero,%r12
1151+
adox -2*8($tptr),%r12
11521152
adcx $zero,%r13
1153+
adox $zero,%r13
11531154
11541155
mov $bptr,8(%rsp) # off-load &b[i]
1155-
.byte 0x67
11561156
mov $mi,%r15
11571157
imulq 24(%rsp),$mi # "t[0]"*n0
11581158
xor %ebp,%ebp # xor $zero,$zero # cf=0, of=0
11591159
11601160
mulx 3*8($aptr),%rax,%r14
11611161
mov $mi,%rdx
1162-
adox -2*8($tptr),%r12
11631162
adcx %rax,%r13
11641163
adox -1*8($tptr),%r13
11651164
adcx $zero,%r14

0 commit comments

Comments
 (0)