Skip to content

Potential dangling pointer in validate_bytes #1388

@TartanLlama

Description

@TartanLlama

validations.cpp:validate_bytes seems problematic: it returns a buffer taken from JS_GetArrayBufferViewData without copying it or ensuring no GC runs. This data should probably be copied.

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