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: correcting protocol parsing logic that may lead to incorrect sanitization of an incoming message from LD servers #288

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

tanderson-ld
Copy link
Contributor

After examining related code to a customer support case and #278, noticed this modification during iteration. Theoretical issue is that modification during iteration, even if not resulting in ConcurrentModificationExceptions, could result in unpredictable iteration and could possibly skip sanitizing certain incoming flags.

Through bench testing and instrumentation testing, I was unable to reproduce the issue, but I suspect it may be dependent on the specific platform's implementation of the Map type that GSON will depend on. Will deploy this fix and work with customers to confirm if the occurrences of the issue is eliminated.

…itization of an incoming message from LD servers
@tanderson-ld tanderson-ld requested a review from a team as a code owner January 21, 2025 16:14
@tanderson-ld tanderson-ld merged commit 9969148 into main Jan 21, 2025
2 checks passed
@tanderson-ld tanderson-ld deleted the ta/sdk-1040/concurrent-modification-fix branch January 21, 2025 16:30
tanderson-ld pushed a commit that referenced this pull request Jan 21, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.6.1](5.6.0...5.6.1)
(2025-01-21)


### Bug Fixes

* correcting protocol parsing logic that may lead to incorrect
sanitization of an incoming message from LD servers
([#288](#288))
([9969148](9969148))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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