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

Issue #678: Fix Variant to handle nil slices #755

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Issue #678: Fix Variant to handle nil slices #755

merged 3 commits into from
Dec 11, 2024

Conversation

magiconair
Copy link
Member

@magiconair magiconair commented Dec 9, 2024

Fix the Variant encoder and decoder to handle nil slices
correctly by setting the length to -1.

https://reference.opcfoundation.org/Core/Part6/v104/docs/5.2.5

Closes #678

@magiconair magiconair requested a review from kung-foo December 9, 2024 10:43
@magiconair magiconair added this to the v0.6.1 milestone Dec 9, 2024
@magiconair
Copy link
Member Author

This fix isn't entirely correct and the tests are too complex. Working on it.

@magiconair magiconair marked this pull request as draft December 9, 2024 13:08
@magiconair magiconair changed the title Issue #678: handle variants with nil arrays Issue #678: Fix Variant to handle nil slices Dec 9, 2024
@magiconair magiconair marked this pull request as ready for review December 9, 2024 14:07
Fix the Variant encoder and decoder to handle nil slices
correctly by setting the length to -1.

Closes #678
@magiconair
Copy link
Member Author

@kung-foo could you have a look? Then I can merge this as well and release v0.6.1

@magiconair magiconair merged commit 32bba7a into main Dec 11, 2024
5 checks passed
@magiconair magiconair deleted the issue-678 branch December 11, 2024 09:52
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.

StatusBadEncodingLimitsExceeded on single read request
1 participant