Skip to content

memory leak on guard trigger within bc_crypt_pbkdf #33

Description

@mha-gen

the issue exists in ext/mri/bcrypt_pbkdf_ext.c in bc_crypt_pbkdf

when bcrypt_pbkdf returns -1 the previously allocated buffer gets never freed, resulting in slow memory accumulation within the extension.

for an example, run something like this:

loop { BCryptPbkdf.key("p", "s", 2000, 1) } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions