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

Lack of input validation and no return statement #2326

Open
shrivalidutt opened this issue Oct 6, 2024 · 0 comments
Open

Lack of input validation and no return statement #2326

shrivalidutt opened this issue Oct 6, 2024 · 0 comments

Comments

@shrivalidutt
Copy link

The code does not check whether the user has entered a valid number of elements . If r is negative or greater than 100, it could lead to undefined behavior or array overflow.
The main function should return an integer value to indicate successful completion to the operating system.

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

No branches or pull requests

1 participant