Skip to content

Commit

Permalink
Don't validate CairoPie memory values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-Ti committed Jun 4, 2024
1 parent c65591e commit fb435b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#### Upcoming Changes

* fix: Remove validation of CairoPie memory values [#1783](https://github.com/lambdaclass/cairo-vm/pull/1783)

* feat: Add `EXCESS_BALANCE` hint [#1777](https://github.com/lambdaclass/cairo-vm/pull/1777)

* feat(BREAKING): Use a cheatcode to relocate all dicts + Make temporary segment usage configurable [#1776](https://github.com/lambdaclass/cairo-vm/pull/1776)
Expand Down
5 changes: 1 addition & 4 deletions vm/src/vm/runners/cairo_pie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,8 @@ impl CairoPie {
Ok(())
};

for ((si, so), value) in self.memory.0.iter() {
for ((si, so), _) in self.memory.0.iter() {
validate_addr((*si as isize, *so).into())?;
if let MaybeRelocatable::RelocatableValue(val) = value {
validate_addr(*val)?;
}
}
Ok(())
}
Expand Down

0 comments on commit fb435b1

Please sign in to comment.