Comments (3)
Thanks, it is working perfectly now!
from halmos.
Thanks for the repro!
This is a known limitation. Please refer to this wiki page:
https://github.com/a16z/halmos/wiki/errors#symbolic-calldataload-offset
In your case, the arguments for UUPSUpgradeable.upgradeToAndCall(address,bytes)
need to be explicitly constructed as described on the wiki page. For example,
function prove4_NoBackdoor(bytes4 selector, address caller) public {
bytes memory args;
if (selector == UUPSUpgradeable.upgradeToAndCall.selector) {
args = abi.encode(svm.createAddress("newImplementation"), svm.createBytes(1024, "data"));
} else {
args = svm.createBytes(1024, "args");
}
_checkNoBackdoor(selector, args, caller);
}
Please let me know if you have any further questions!
from halmos.
The error message has been documented here for future reference: https://github.com/a16z/halmos/wiki/errors#symbolic-calldataload-offset
from halmos.
Related Issues (20)
- Add vyper support HOT 8
- non-hexadecimal number found in fromhex() arg HOT 2
- add int blasting HOT 1
- Add coverage report
- Counterexample in json output
- Values for storage in counterexample HOT 1
- Path constraints in json output
- default extended json output
- Add option to specify when we expect a counterexample
- Create a test that demonstrates the payable multicall vulnerability
- Better support for string comparison patterns
- Halmos throws `Counterexample: unknown` warning on solc versions < 0.8.17 HOT 2
- Halmos Keccak producing incorrect values HOT 3
- The toy tests are missing with the new halmos version HOT 2
- earlier processing @custom:halmos tags HOT 1
- Support multiple setup states, possibly in parallel
- add div axioms
- Support vm.fork/createSelectFork from foundry HOT 2
- `forge-build-out` doesn't work as expectation. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from halmos.