-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
secure_run
flag + integrate verify_secure_runner
into `cairo-…
…run` (#771) * Start re-implementing BuiltinRunner::run_security_checks * Add method verify_auto_deductions_for_addr + finish re-implementation * Fix loop variable * Clippy * Style * Fix math + add missing check * Fix logic * Add test + repurpose test * Fix test * Fix potential substraction with overflow * Remove test inconsistencies * Use iterators for offset_max & offset_len * Use assumption for max_offset * Add misc tests * Add more tests * More exhaustive clippy * Save initial progress * Save progress * Return early ok if empty builtin segment * Fix comparison bounds * Remove uneeded mut * Add warning, fix comparison, add tests * Fix test * Fix tests * Quick solution for stop_ptr not being updated * Fix error variant * Save progress * Fix error varaint in test * Fix test * Add temporary addresses check * Add tests for temporary addresses check * Remove previous implementation * Simplify segment info + clippy * Style * Fix * Fix error strings * Add comment * Add changelog entry * Add tests for read_return_values * Add secure_run flag * Remove asserts from ec_op tests & adapt tests * Fix error string * Clippy tests * Add test comment * Add changelog entry * Add clippy::allow_too_many_arguments for cairo_run * Fix bug in ec_op deduce_memory_cell * Add bugfix to changelog * Update CHANGELOG.md * Fix benchmarks * Change return of get_segment_info to vec * Fix typos * Fix typos * Fix comment
- Loading branch information
Showing
11 changed files
with
185 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ macro_rules! iai_bench_expand_prog { | |
false, | ||
"all", | ||
false, | ||
None, | ||
&mut hint_executor, | ||
) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.