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 — src: assert return value of BN_bn2binpad · nodejs/node@07a4e94

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/crypto
    • crypto_random.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/crypto/crypto_random.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_random.cc
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Maybe<bool> RandomPrimeTraits::EncodeOutput(
7575
size_t size = BN_num_bytes(params.prime.get());
7676
std::shared_ptr<BackingStore> store =
7777
ArrayBuffer::NewBackingStore(env->isolate(), size);
78-
BN_bn2binpad(
79-
params.prime.get(),
80-
reinterpret_cast<unsigned char*>(store->Data()),
81-
size);
78+
CHECK_EQ(static_cast<int>(size),
79+
BN_bn2binpad(params.prime.get(),
80+
reinterpret_cast<unsigned char*>(store->Data()),
81+
size));
8282
*result = ArrayBuffer::New(env->isolate(), store);
8383
return Just(true);
8484
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.