Although the Account definition includes a maximum length limit, there is no validation when storing values in the fund account variables.
lib.rs::fund_createdoes't have proper validation on inputs for these 2 variables - name and description
Without proper validation, data stored in the fund account may be truncated or cause unintended reverts, leading to inconsistencies and potential failures in fund creation
Manual review
Check for lengths in lib.rs::fund_createfunction
There is a validation for the lengths of `name` and `description` in `fund_create` function: ``` pub struct Fund { #[max_len(200)] pub name: String, #[max_len(5000)] ..... } ``` Anchor will check for the lengths of these parameters and the function will fail if they have more characters than the constraints.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.