slither icon indicating copy to clipboard operation
slither copied to clipboard

Detector for encodeWithSelector wrong argument count/ mismatched types

Open feliam opened this issue 3 years ago • 5 comments

The Solc Compiler does not help checking that the arguments used in when building the transaction calldata with encodeWhitSelector matches the target function. This detector look for miss-matching encodeWithSelector arguments and target function arguments.

feliam avatar Jul 17 '22 22:07 feliam

This pull request introduces 2 alerts when merging ecd8adbcbefe8ad77fa86eca3bd7954a2d7d65bc into d0a4f5595d7177b3b7d4bd35e1384bf35ebc22d4 - view on LGTM.com

new alerts:

  • 2 for Unused import

lgtm-com[bot] avatar Jul 17 '22 22:07 lgtm-com[bot]

This pull request introduces 1 alert when merging 7ce0a718568df55aea7752e1ddcb4b6f7bb3d0c9 into d0a4f5595d7177b3b7d4bd35e1384bf35ebc22d4 - view on LGTM.com

new alerts:

  • 1 for Unused import

lgtm-com[bot] avatar Jul 17 '22 22:07 lgtm-com[bot]

This pull request introduces 1 alert when merging 5fbbef55c7781f832c8f950b05aa28af226c2ffe into d0a4f5595d7177b3b7d4bd35e1384bf35ebc22d4 - view on LGTM.com

new alerts:

  • 1 for Unused import

lgtm-com[bot] avatar Jul 17 '22 23:07 lgtm-com[bot]

This pull request introduces 1 alert when merging 15d79b47d7ed9e4e14142f9d060fc295ab35d4f9 into d0a4f5595d7177b3b7d4bd35e1384bf35ebc22d4 - view on LGTM.com

new alerts:

  • 1 for Unused import

lgtm-com[bot] avatar Jul 21 '22 18:07 lgtm-com[bot]

Can we add a test case that uses an array type as an argument please?

0xalpharush avatar Jun 22 '23 15:06 0xalpharush