Skip to content

Not all octet strings need to be UTF-8 #27

@atesgoral

Description

@atesgoral

https://github.com/mcavage/node-asn1/blob/master/lib/ber/reader.js#L187

Because readString() converts the buffer to a UTF-8 string, there is an irreversible corruption, when the string is converted back to a Buffer via Buffer.from(str, 'binary').

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