Skip to content

Append limit#801

Merged
mattbaileyuk merged 3 commits into
masterfrom
append_limit
May 19, 2026
Merged

Append limit#801
mattbaileyuk merged 3 commits into
masterfrom
append_limit

Conversation

@andrew-coleman
Copy link
Copy Markdown
Member

@andrew-coleman andrew-coleman commented May 19, 2026

Applies the recently added sequence limit option to the $append() function.

andrew-coleman and others added 3 commits May 18, 2026 14:59
In line with best practices described here:
https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/Prototype_pollution
the following changes have been made across the codebase to prevent potential object prototype pollution:
- All objects created using `… = {}` have been changed to `... = Object.create(null)` (i.e.) null prototype objects.
- All occurrencies of `obj.hasOwnProperty(‘prop’)` have been changed to `Object.prototype.hasOwnProperty.call(obj, ‘prop’)`
- All occurrencies of `for(const prop in obj)` have been changed to `for(const prop of Object.keys(obj))`
- Changed arr.forEach(…) to Array.prototype.forEach.call(arr, …) when iterating over input sequences.

Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>
The $append function was allowing sequences to be generated
that exceeded the sequence length guardrail.

Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>
@mattbaileyuk mattbaileyuk merged commit 91532d4 into master May 19, 2026
8 checks passed
@mattbaileyuk mattbaileyuk deleted the append_limit branch May 19, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants