-
Notifications
You must be signed in to change notification settings - Fork 691
Syntax node children now passed by ref #8044
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
Conversation
795aaf6 to
f559686
Compare
55cf75c to
ff4e328
Compare
ff4e328 to
b5f4ea9
Compare
f559686 to
87dfaa2
Compare
b5f4ea9 to
af6733d
Compare
87dfaa2 to
6d801e0
Compare
af6733d to
b13dc83
Compare
db46d1a to
bcdfc7d
Compare
b13dc83 to
0a8e10c
Compare
bcdfc7d to
96d95c7
Compare
|
Semgrep found 1 The application builds a file path from potentially untrusted data, which can lead to a path traversal vulnerability. An attacker can manipulate the path which the application uses to access files. If the application does not validate user input and sanitize file paths, sensitive files such as configuration or user data can be accessed, potentially creating or overwriting files. To prevent this vulnerability, validate and sanitize any input that is used to create references to file paths. Also, enforce strict file access controls. For example, choose privileges allowing public-facing applications to access only the required files. View Dataflow Graphflowchart LR
classDef invis fill:white, stroke: none
classDef default fill:#e7f5ff, color:#1c7fd6, stroke: none
subgraph File0["<b>crates/cairo-lang-executable/src/compile.rs</b>"]
direction LR
%% Source
subgraph Source
direction LR
v0["<a href=https://github.com/starkware-libs/cairo/blob/96d95c758355d7e1770251fbe490408637bfae5b/crates/cairo-lang-executable/src/compile.rs#L107 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 107] path</a>"]
end
%% Intermediate
%% Sink
subgraph Sink
direction LR
v1["<a href=https://github.com/starkware-libs/cairo/blob/96d95c758355d7e1770251fbe490408637bfae5b/crates/cairo-lang-executable/src/compile.rs#L107 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 107] &path</a>"]
end
end
%% Class Assignment
Source:::invis
Sink:::invis
File0:::invis
%% Connections
Source --> Sink
|
96d95c7 to
ef8477a
Compare
f4813b1 to
bb6720a
Compare
ef8477a to
0cac909
Compare
bb6720a to
ff6fd75
Compare
6716593 to
ce2bdd4
Compare
b3598a8 to
9ee41bc
Compare
ce2bdd4 to
0f64687
Compare
9ee41bc to
ed7a97c
Compare
625d2df to
5aa6456
Compare
ed7a97c to
44792d5
Compare
orizi
left a comment
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 12 of 12 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @eytan-starkware)
crates/cairo-lang-syntax/src/node/element_list.rs line 63 at r1 (raw file):
Self { _data: data, iter } } }
you can now just fully delete this struct.
Code quote:
/// Iterator over the raw elements of an `ElementList`.
struct ElementListRawIter<'a> {
/// The `Arc` storing the actual node.
_data: &'a [SyntaxNode<'a>],
/// Actual iterator over the elements.
iter: std::slice::Iter<'a, SyntaxNode<'a>>,
}
impl<'a> ElementListRawIter<'a> {
fn new(data: &'a [SyntaxNode<'a>]) -> Self {
let iter = data.iter();
Self { _data: data, iter }
}
}commit-id:040c517a
5aa6456 to
1adfe98
Compare
eytan-starkware
left a comment
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: all files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-syntax/src/node/element_list.rs line 63 at r1 (raw file):
Previously, orizi wrote…
you can now just fully delete this struct.
Done.
orizi
left a comment
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 8 of 8 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @eytan-starkware)
Stack: