Skip to content

Commit

Permalink
Update test6.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyueyan-code authored Dec 24, 2020
1 parent f4cd811 commit e5f2d4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test6.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function CWE_129(x) { // ARRAY_INDEX_NEGATIVE
var arr = [1, 2, 3];
if (x > 0) {
if (x < 0) {
arr[x] = 3;
}
}
Expand All @@ -11,7 +11,7 @@ function CWE_398() { // IDENTICAL_BRANCHES
if (x >= 0) {
y = x;
} else {
y =-x;
y =x;
}
}

Expand Down Expand Up @@ -74,7 +74,6 @@ function CWE_628() { // TOO_MANY_ARGS
}

function CWE_670(x) { // STRAY_SEMICOLON
var sum =0;
while (++x <= 10) ;
{
sum += x;
Expand Down

0 comments on commit e5f2d4f

Please sign in to comment.