Skip to content
Commit b11980d7 authored by Matt Caswell's avatar Matt Caswell
Browse files

Check for 0 modulus in BN_MONT_CTX_set



The function BN_MONT_CTX_set was assuming that the modulus was non-zero
and therefore that |mod->top| > 0. In an error situation that may not be
the case and could cause a seg fault.

This is a follow on from CVE-2015-1794.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent f15c99f4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment