Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl_clone() does not properly initialize internal_random_state #23024

Open
demerphq opened this issue Feb 24, 2025 · 0 comments
Open

perl_clone() does not properly initialize internal_random_state #23024

demerphq opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
internals issue some kind of internals issue that is not necessarily user visible

Comments

@demerphq
Copy link
Collaborator

Description
perl_clone() in sv.c should initialize all members of the proto_perl() before use. It seems that from the first day we added internal_random_state() we have not been initializing it properly in sv.c

I have a patch, but I wanted to create an issue first.

Steps to Reproduce
N/A

Expected behavior
We should either be treating it the same as random_state or we should initialize it in some well defined way. We should not be using undefined bytes in the structure.

Perl configuration
This is true as of 5.41.9

@demerphq demerphq self-assigned this Feb 24, 2025
@demerphq demerphq added internals issue some kind of internals issue that is not necessarily user visible and removed Needs Triage labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internals issue some kind of internals issue that is not necessarily user visible
Projects
None yet
Development

No branches or pull requests

1 participant