Skip to content

Zero-byte allocation causes assertion failure #25247

@tniessen

Description

@tniessen
  • Version: 11.6.0
  • Platform: Ubuntu, Windows
  • Subsystem: crypto

Passing an empty string to any function that parses a private key causes an assertion failure:

> crypto.createPrivateKey({ key: '' })
C:\WINDOWS\system32\cmd.exe - node[12104]: src\node_crypto.cc:2675: Assertion `(mem) != nullptr' failed.

Metadata

Metadata

Assignees

Labels

confirmed-bugIssues with confirmed bugs.cryptoIssues and PRs related to the crypto subsystem.securityIssues and PRs related to security.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions