-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Internal domain function can be used to cause segfaults #14519
Copy link
Copy link
Closed
Labels
domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
Metadata
Metadata
Assignees
Labels
domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
The following snippet will cause a segmentation fault on master:
This is caused by using
env->domain_array->Get(0)instead of the safe variant of theGetfunction. This is not limited torandomBytes, there is a number of files with similar code.The priority of this issue is very low as it uses undocumented internal functions to intentionally cause a segmentation fault. I am documenting this for the sake of completeness.