Skip to content

xmalloc happens before keylen guard is executed #31

Description

@mha-gen

at ext/mri/bcrypt_pbkdf_ext.c in bc_crypt_pbkdf, xalloc happens before any sort of boundary check is performed on keylen, so if passing a big enough keylen. Feels like would be better to do the guard check that happens inside bcrypt_pbkdf inside the ext as well.

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