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 IndexOutOfBoundsException caused by consuming the buffer multiple… #11592

Merged
merged 1 commit into from Aug 18, 2021

Conversation

normanmaurer
Copy link
Member

… times in DatagramDnsQueryDecoder

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

  • Correctly only decode one time.
  • Adjust unit test

Result:

Fixes #11591

… times in DatagramDnsQueryDecoder

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

- Correctly only decode one time.
- Adjust unit test

Result:

Fixes #11591
@normanmaurer normanmaurer merged commit b82cb34 into 4.1 Aug 18, 2021
@normanmaurer normanmaurer deleted the query_decoder_fix branch August 18, 2021 12:58
normanmaurer added a commit that referenced this pull request Aug 18, 2021
… times in DatagramDnsQueryDecoder (#11592)

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

- Correctly only decode one time.
- Adjust unit test

Result:

Fixes #11591
@ikhoon
Copy link
Contributor

ikhoon commented Aug 19, 2021

Thanks for the quick fix! 🙇‍♂️❤️

@vkostyukov
Copy link
Contributor

@normanmaurer thank you for the fix! Do you feel it's worth cutting a release for? We found ourselves blocked as some of our systems using DNS codec.

@normanmaurer
Copy link
Member Author

Release is planed for next week @vkostyukov

@vkostyukov
Copy link
Contributor

Thanks, Norman! That's great to hear!

@roanta
Copy link

roanta commented Sep 7, 2021

Hi @normanmaurer, any updates on a new release which includes this fix?

Thanks!

@normanmaurer
Copy link
Member Author

normanmaurer commented Sep 7, 2021 via email

laosijikaichele pushed a commit to laosijikaichele/netty that referenced this pull request Dec 16, 2021
… times in DatagramDnsQueryDecoder (netty#11592)

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

- Correctly only decode one time.
- Adjust unit test

Result:

Fixes netty#11591
laosijikaichele pushed a commit to laosijikaichele/netty that referenced this pull request Dec 16, 2021
… times in DatagramDnsQueryDecoder (netty#11592)

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

- Correctly only decode one time.
- Adjust unit test

Result:

Fixes netty#11591
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
… times in DatagramDnsQueryDecoder (netty#11592)

Motivation:

ccef8fe introduced some changes to share code but did introduce a regression when decoding queries.

Modifications:

- Correctly only decode one time.
- Adjust unit test

Result:

Fixes netty#11591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatagramDnsQueryDecoder.newQuery() raises IndexOutOfBoundsException
5 participants