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

Made #decode_rdata client to catch errors #1511

Closed
wants to merge 1 commit into from

Conversation

vimutter
Copy link

So it can report them to the top in more informative way as DecodeError.

Added test on Resolv::DNS::Message.decode

It was not reflecting on errors of data and thus breaking. Client code expects DecodeError and knows how to handle broken messages.

rubygems/rubygems#1626

So it can report them to the top in more informative way as DecodeError.

Added test on Resolv::DNS::Message.decode

It was not reflecting on errors of data and thus breaking. Client code expects `DecodeError` and knows how to handle broken messages.
@hsbt hsbt closed this in 2b2450b Jan 14, 2017
nobu added a commit to nobu/ruby that referenced this pull request Jan 14, 2017
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#get_rr):
  re-raise an exception from decode_rdata as DecodeError, so it
  can report them to the top in more informative way.  It was not
  reflecting on errors of data and thus breaking.  Client code
  expects `DecodeError` and knows how to handle broken messages.
  [Fix rubyGH-1511]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
@vimutter
Copy link
Author

Thanks, @nobu

@vimutter vimutter deleted the patch-1 branch January 16, 2017 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant