solana-lints icon indicating copy to clipboard operation
solana-lints copied to clipboard

Lints based on the Sealevel Attacks

Results 20 solana-lints issues
Sort by recently updated
recently updated
newest added

Bumps [anchor-syn](https://github.com/coral-xyz/anchor) from 0.29.0 to 0.30.0. Release notes Sourced from anchor-syn's releases. v0.30.0 The long-awaited v0.30.0 release is finally here! Check out the release notes from Anchor website or GitHub....

dependencies
rust

Bumps [syn](https://github.com/dtolnay/syn) from 1.0.109 to 2.0.52. Release notes Sourced from syn's releases. 2.0.52 Add an expression parser that uses match-arm's boundary rules (#1593) 2.0.51 Resolve non_local_definitions warnings in generated code...

dependencies
rust

Quick and somewhat-dirty implementation of lint 6. Tests pass, but may need further work/clean-up when encountering >2 duplicate accounts.

The missing signer check lint will warn on the `from` account despite being implicitly checked by the system's `transfer` [instruction](https://docs.rs/solana-program/latest/src/solana_program/system_instruction.rs.html#410-420) (It creates an instruction with `AccountMeta:new(from, is_signer:true)`). We can check...

enhancement

Short and sweet lint that addresses this issue by flagging any calls to `bincode::deserialize()` (resolving to a type implementing Sysvar trait) and advising user to use `from_account_info()` instead (the way...

This PR is not meant to be merged (but could be in the future if a lint strategy is created). The only notable file in this PR is in `ui/recommended/init_expansion.rs`....

In the anchor check that is being added to type-cosplay in #15, I swap some logic around and first check the type X in X::deser(), before checking the function call....

The current lint implementation handles the case when there are only two duplicate accounts just fine. This is because there only needs to be one constraint, to check the keys...

Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 2.0.14 to 2.0.15. Changelog Sourced from assert_cmd's changelog. [2.0.15] - 2024-07-25 Compatibility MSRV is now 1.74.0 Commits 2a1e1db chore: Release assert_cmd version 2.0.15 0695e37 docs: Update changelog...

dependencies
rust

Bumps [toml](https://github.com/toml-rs/toml) from 0.8.15 to 0.8.19. Commits afd3f1f chore: Release 5183e39 docs: Update changelog a7a9611 chore: Release e1ce60c docs: Update changelog d0f242b Merge pull request #775 from epage/perf c7efee7 perf(parser):...

dependencies
rust