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) } 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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