GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: float ea7abee from openssl / CVE-2018-0732 · nodejs/node@e4a7e0d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/openssl/openssl/crypto/dh
    • dh_key.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/openssl/openssl/crypto/dh/dh_key.c‎

Copy file name to clipboardExpand all lines: deps/openssl/openssl/crypto/dh/dh_key.c
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,15 @@ static int generate_key(DH *dh)
7878
int ok = 0;
7979
int generate_new_key = 0;
8080
unsigned l;
81-
BN_CTX *ctx;
81+
BN_CTX *ctx = NULL;
8282
BN_MONT_CTX *mont = NULL;
8383
BIGNUM *pub_key = NULL, *priv_key = NULL;
8484

85+
if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) {
86+
DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARGE);
87+
return 0;
88+
}
89+
8590
ctx = BN_CTX_new();
8691
if (ctx == NULL)
8792
goto err;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.