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