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

Evaluating code in struct construction is a possible security issue #51

Open
Oldes opened this issue Jul 29, 2021 · 0 comments
Open

Evaluating code in struct construction is a possible security issue #51

Oldes opened this issue Jul 29, 2021 · 0 comments

Comments

@Oldes
Copy link

Oldes commented Jul 29, 2021

Such a code should not be allowed:

>> s: make struct! [ a: [uint8] probe random 100 ]
25
>> mold s
== "make struct! [a: [uint8] 25]"
>> spec-of s
== [a: [uint8] probe random 100]
>> probe make s []
make struct! [a: [uint8] 25] ;<---- the spec is not used anymore
Oldes added a commit to Oldes/Rebol3 that referenced this issue Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant