diff options
author | Linus Groh <mail@linusgroh.de> | 2020-04-28 00:26:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-28 13:08:19 +0200 |
commit | c14fedd5629cf45f4a7b64e6c87d87181432c42d (patch) | |
tree | ed867deacb9c79114ff3b0a5f9f46cef8050ff3d /Userland/ifconfig.cpp | |
parent | 92671be906066affa0aaf072615d094e50440c8a (diff) | |
download | serenity-c14fedd5629cf45f4a7b64e6c87d87181432c42d.zip |
LibJS: Add bounds check to Array.prototype.{find,findIndex}
The number of iterations is limited to the initial array size, but we
still need to check if the array did shrink since then before accessing
each element.
Fixes #1992.
Diffstat (limited to 'Userland/ifconfig.cpp')
0 files changed, 0 insertions, 0 deletions