Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AIIOB in Variable SET changer #6600

Merged
merged 4 commits into from
Apr 27, 2024

Conversation

sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented Apr 22, 2024

Description

Variable's SET changer assumes that delta is either an array of length >=1 or null, and doesn't properly handle empty arrays in some cases. This adds a check for empty arrays, which then just ignores the set.


Target Minecraft Versions: any
Requirements: none
Related Issues: SkriptLang/skript-reflect#99

@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.8 Targeting a 2.8.X version release labels Apr 22, 2024
@sovdeeth
Copy link
Member Author

sovdeeth commented Apr 22, 2024

rerequest due to behavior change (set null -> don't change at all)

Copy link
Member

@AyhamAl-Ali AyhamAl-Ali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sovdeeth sovdeeth added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Apr 23, 2024
@Moderocky Moderocky merged commit d6322ad into SkriptLang:dev/patch Apr 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants