mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
The fix is for the DH_set_length error. As shown in lines 2-5, OpenSSL 3.0 added a check for length, which allowed this issue to be exposed. ``` 1 if (dh->params.q == NULL) { 2 /* secret exponent length, must satisfy 2^(l-1) <= p */ 3 if (dh->length != 0 4 && dh->length >= BN_num_bits(dh->params.p)) 5 goto err; 6 l = dh->length ? dh->length : BN_num_bits(dh->params.p) - 1; 7 if (!BN_priv_rand_ex(priv_key, l, BN_RAND_TOP_ONE, 8 BN_RAND_BOTTOM_ANY, 0, ctx)) 9 goto err; ... ... } ``` --------- Co-authored-by: john <hondaxiao@tencent.com> |
||
---|---|---|
.. | ||
3rdparty | ||
auto | ||
conf | ||
doc | ||
etc/init.d | ||
gdb | ||
ide/srs_clion | ||
modules | ||
packaging | ||
research | ||
scripts | ||
src | ||
usr/lib/systemd/system | ||
.gitignore | ||
AUTHORS.md | ||
AUTHORS.txt | ||
configure | ||
Dockerfile.builds | ||
Dockerfile.cov | ||
Dockerfile.pkg | ||
Dockerfile.test |