Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TaskContract.sol #502

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

AVI-SHUKLA1110
Copy link
Contributor

Bound Check for array input.

  • In the getMyTasks function, there is no bounds checking when copying tasks into the temporary array. If the counter exceeds the temporary array's length, it could lead to an exception. We can add a check to ensure counter doesn't exceed temporary's length.

So , I updated the file with required changes.

### Bound Check for array input.
+In the getMyTasks function, there is no bounds checking when copying tasks into the temporary array. If the counter exceeds the temporary array's length, it could lead to an exception. We can add a check to ensure counter doesn't exceed temporary's length.

> So , I updated the file with required changes.
@shubhisingh184
Copy link
Collaborator

@AVI-SHUKLA1110 what is your issue no.?

@AVI-SHUKLA1110
Copy link
Contributor Author

I think I didn't create an issue for this, I just did the required changes in my forked repo

@shubhisingh184
Copy link
Collaborator

@AVI-SHUKLA1110 then you should create an issue first and when it'll get assigned to you, then raise a pull request okay.

@AVI-SHUKLA1110
Copy link
Contributor Author

Okayy thnks

@AVI-SHUKLA1110
Copy link
Contributor Author

@shubhisingh184 the issue number is #503

@AVI-SHUKLA1110
Copy link
Contributor Author

@Vikash-8090-Yadav @shubhisingh184 please merge it

Copy link
Owner

@Vikash-8090-Yadav Vikash-8090-Yadav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vikash-8090-Yadav Vikash-8090-Yadav merged commit c0755c7 into Vikash-8090-Yadav:main Jul 31, 2023
1 check passed
@AVI-SHUKLA1110 AVI-SHUKLA1110 deleted the patch-1 branch July 31, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants