You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a0ebf97
Browse filesBrowse the repository at this point in the historyBrowse files
fix(v4): check array, set and map size bounds before parsing elements (#6652)
.max(), .length() and .size() ran after every element was walked, so an
oversized input built one issue per bad element before the bound was
reported. Leading size checks now reject the input first, both in the
interpreter and in the compiled path.
Fixes#6643
/* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
938
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
0 commit comments