Skip to content

No check on return value of ASN1_item_ndef_i2d() #14177

@FloridSleeves

Description

@FloridSleeves

In crypto/asn1/bio_ndef.c, line 116 in ndef_prefix(), the return value derlen of ASN1_item_ndef_i2d does not get checked. However, it could be smaller than 0.
I wonder whether the right handling should check derlen<=0 before proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions