Skip to content

Buffer with too many invalid UTF-8 characters triggers abort #718

@natevw

Description

@natevw

Code:

Buffer("ffffffffffffffff", 'hex').toString('utf8')

Result:

Assertion failed: (buf_pos + 6 < buf_len), function tm_str_from_utf8, file ../../src/tm_utf8.c, line 112.

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