Skip to content

crypto.pbkdf2 with an keylen too long crashes in a segfalt #5396

Closed
@calvinmetcalf

Description

@calvinmetcalf

in node 4.1.2 and latter calling

crypto.pbkdf2('password','salt', 1, 4073741824, function(err, resp){console.log(err, resp)});

causes node to crash with the message

Segmentation fault: 11

node 4.1.1 and earlier throw a TypeError: Bad key length

browserify/pbkdf2#22

I suspect this commit 4c8d96b is to blame

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions