Skip to content

Calling postject_find_resource() segfaults on rhel8-ppc64le #70

@RaisinTen

Description

@RaisinTen

The crash originates from here:

if (note->n_namesz != 0 && note->n_descsz != 0 &&

while dereferencing the note pointer. Note that note is not a null pointer here.

This is happening for the case where the resource hasn't been injected into the node binary.

This is one of the blockers for the single-executable PR in core - nodejs/node#45038. I think calling postject_has_resource() first would also unblock that PR.

Refs: nodejs/build#3168

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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