• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-modules / 9806149214
97%
master: 85%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Jul 2024 09:27AM CUT
Jobs 1
Files 12
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jul 2024 09:26AM CUT coverage: 100.0%. Remained the same
9806149214

push

github

web-flow
Check `staticcall` Result From SHA-256 Precompile (#457)

Fixes
https://github.com/hats-finance/Safe-0x<a class=hub.com/safe-global/safe-modules/commit/2909fdefd24a1ced675cb1444918fa766d76bdac">2909fdefd/issues/14,
also see
https://github.com/hats-finance/Safe-0x2909fdefd24a1ced675cb1444918fa766d76bdac/pull/22
for some additional context.

This PR changes the `_sha256` implementation to check the result from
the static call. There is a very subtle bug with not checking, where,
for very large inputs, you would be able to get the precompile to revert
but have the function finish executing successfully (and use whatever is
in the scratch space as the digest).

Note that **we do not check the length of the `returndata`**. This is
intentional and the same thing that the Solidity compiler does for the
builtin `sha256` function.

28 of 28 branches covered (100.0%)

Branch coverage included in aggregate %.

90 of 90 relevant lines covered (100.0%)

30.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9806149214.1 05 Jul 2024 09:27AM CUT 12
100.0
GitHub Action Run
Source Files on build 9806149214
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
100.0
...asskey/contracts/4337/SafeWebAuthnSharedSigner.sol152 17 17 0 8.0 6 0
100.0
...ules/passkey/contracts/base/SignatureValidator.sol44 4 4 0 13.0 4 0
100.0
...les/passkey/contracts/interfaces/IP256Verifier.sol35 0 0 0 0.0 0 0
100.0
...asskey/contracts/interfaces/ISafeSignerFactory.sol65 0 0 0 0.0 0 0
100.0
modules/passkey/contracts/interfaces/ISafe.sol43 0 0 0 0.0 0 0
100.0
modules/passkey/contracts/libraries/ERC1271.sol25 0 0 0 0.0 0 0
100.0
modules/passkey/contracts/libraries/P256.sol169 13 13 0 45.0 8 0
100.0
modules/passkey/contracts/libraries/WebAuthn.sol357 21 21 0 41.0 4 0
100.0
...es/passkey/contracts/SafeWebAuthnSignerFactory.sol101 12 12 0 22.0 2 0
100.0
...ules/passkey/contracts/SafeWebAuthnSignerProxy.sol81 9 9 0 25.0 0 0
Showing 1 to 10 of 12 entries
  • Previous
  • 1
  • 2
  • Next
  • ►
    100.0
    modules/
  • Back to Repo
  • 61a4e067 on github
  • Prev Build on main (#9710872352)
  • Next Build on main (#9807171647)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc