Skip to content

x509_plus: NoticeReference.fromAsn1 crashes — List<dynamic>/BigInt assigned to List<int> noticeNumbers #358

Description

@ahmednfwela

NoticeReference.fromAsn1 (packages/x509_plus/lib/src/extension.dart:555) assigns toDart(sequence.elements[1]) — a List<dynamic> of BigInt — to List<int> noticeNumbers, throwing type 'List<dynamic>' is not a subtype of type 'List<int>'. Any CertificatePolicies/UserNotice extension carrying a noticeRef is unparseable.

Fix: map explicitly to List<int>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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