forked from Sunbird-Obsrv/obsrv-api-service
-
Notifications
You must be signed in to change notification settings - Fork 9
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
#OBS-I335: dataset update fix #276
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9ce2373
#OBS-I335: dataset update fix
JeraldJF a3c3459
#OBS-I335: loop bound issue fix
JeraldJF 939893d
#OBS-I335: dataset updated as per feedbacks
JeraldJF c01be2a
#OBS-I334 - Fix the schema update functionality
SanthoshVasabhaktula 6d1cb44
Merge branch 'hudi-spec-fix' of github.com:Sanketika-Obsrv/obsrv-api-…
SanthoshVasabhaktula File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Loop bound injection High
Copilot Autofix AI about 2 months ago
To fix the problem, we need to ensure that the
newConfigs
object is a valid array and has a reasonable length before using it in the loop. We can achieve this by adding a check to confirm thatnewConfigs
is an array and limiting its length to a safe maximum value.newConfigs
is an array usingArray.isArray
.newConfigs
to a maximum value (e.g., 1000) to prevent potential DoS attacks.