BIND 10 #3286: Message::fromWire cannot be called more than once per instance

BIND 10 Development do-not-reply at isc.org
Tue Jan 21 14:22:18 UTC 2014


#3286: Message::fromWire cannot be called more than once per instance
-------------------------------------+-------------------------------------
            Reporter:  tmark         |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  low           |                       Status:  new
           Component:  libdns++      |                    Milestone:  New
            Keywords:                |  Tasks
           Sensitive:  0             |                   Resolution:
         Sub-Project:  DNS           |                 CVSS Scoring:
Estimated Difficulty:  0             |              Defect Severity:  N/A
         Total Hours:  0             |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------

Comment (by muks):

 I'm not sure if we need to support more than one `fromWire()` call on a
 `Message` object anywhere.

 The `Message` class API doc says:
 {{{
     /// \brief (Re)build a \c Message object from wire-format data.
 }}}

 which implies that it should be possible to call it more than once. But
 reading the implementation, it seems that `fromWire()` does not initially
 clear/reinitialize some member variables at the start, so multiple calls
 may fail.

-- 
Ticket URL: <http://bind10.isc.org/ticket/3286#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list