Skip to content

Commit

Permalink
Additional work for #487
Browse files Browse the repository at this point in the history
One loop was missed during #487, being lost in a git stash.
  • Loading branch information
Warfields committed Apr 6, 2023
1 parent 57084bc commit ae1d68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/form-data.c++
Expand Up @@ -430,7 +430,7 @@ void FormData::forEach(
// it up. Using the classic for (;;) syntax here allows for that. However, this does
// mean that it's possible for a user to trigger an infinite loop here if new items
// are added to the search params unconditionally on each iteration.
for (int i = 0; i < this->data.size(); i++) {
for (size_t i = 0; i < this->data.size(); i++) {
auto& [key, value] = this->data[i];
static constexpr auto ARG_COUNT = 3;

Expand Down

0 comments on commit ae1d68f

Please sign in to comment.