Skip to content

potential null-deref bug in openssl.c #12099

@icy17

Description

@icy17

I did this

There is a potential null-dereference when calling BN_num_bits. Calling this API with a NULL pointer cause NULL-dereference.

I expected the following

It's better to check if n is NULL before calling this API.

curl/libcurl version

master

operating system

ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    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