Skip to content

Commit 2fac86d

Browse files
Andy Polyakovmattcaswell
authored andcommitted
bn/asm/x86_64-mont.pl: fix for CVE-2016-7055 (Low severity).
Reviewed-by: Rich Salz <[email protected]>
1 parent dca2e0e commit 2fac86d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

crypto/bn/asm/x86_64-mont.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,18 +1157,17 @@
11571157
mulx 2*8($aptr),%r15,%r13 # ...
11581158
adox -3*8($tptr),%r11
11591159
adcx %r15,%r12
1160-
adox $zero,%r12
1160+
adox -2*8($tptr),%r12
11611161
adcx $zero,%r13
1162+
adox $zero,%r13
11621163
11631164
mov $bptr,8(%rsp) # off-load &b[i]
1164-
.byte 0x67
11651165
mov $mi,%r15
11661166
imulq 24(%rsp),$mi # "t[0]"*n0
11671167
xor %ebp,%ebp # xor $zero,$zero # cf=0, of=0
11681168
11691169
mulx 3*8($aptr),%rax,%r14
11701170
mov $mi,%rdx
1171-
adox -2*8($tptr),%r12
11721171
adcx %rax,%r13
11731172
adox -1*8($tptr),%r13
11741173
adcx $zero,%r14

0 commit comments

Comments
 (0)