-
Notifications
You must be signed in to change notification settings - Fork 575
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
Checking if any syscall libfuncs are used. #7189
Checking if any syscall libfuncs are used. #7189
Conversation
2cb4eb4
to
01586cf
Compare
01586cf
to
da6c578
Compare
why does this conflict? Code quote: conflicts_with = "prebuilt")] |
isn't it better to check for usage of the system ptr? Code quote: if !config.allow_syscalls {
for libfunc in &sierra_program.libfunc_declarations {
if libfunc.long_id.generic_id.0.ends_with("_syscall") {
anyhow::bail!(
"The function is using libfunc `{}`. Syscalls are not supported in \
`#[executable]`.",
libfunc.long_id.generic_id
);
}
}
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @ArielElp and @orizi)
crates/cairo-lang-executable/src/compile.rs
line 57 at r1 (raw file):
/// If true, will allow syscalls in the program. /// /// In general, syscalls are not allowed in executables, as they are currently not checked.
Suggestion:
verified
Having the problematic libfunc in the message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @ArielElp and @ilyalesokhin-starkware)
crates/cairo-lang-executable/src/compile.rs
line 179 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
isn't it better to check for usage of the system ptr?
it seems it is give a clearer cause to the use of what caused them to use the System ptr.
crates/cairo-lang-executable/src/compile.rs
line 57 at r1 (raw file):
/// If true, will allow syscalls in the program. /// /// In general, syscalls are not allowed in executables, as they are currently not checked.
Done.
da6c578
to
3cc10e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @ArielElp and @ilyalesokhin-starkware)
crates/bin/cairo-execute/src/main.rs
line 68 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
why does this conflict?
because it was already built - you can't even check this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 5 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ArielElp)
Having the problematic libfunc in the message.