BIND 10 #3286: Message::fromWire cannot be called more than once per instance
BIND 10 Development
do-not-reply at isc.org
Mon Jan 13 16:38:58 UTC 2014
#3286: Message::fromWire cannot be called more than once per instance
-------------------------------------+-------------------------------------
Reporter: tmark | Owner: UnAssigned
Type: | Status: new
defect | Milestone: New Tasks
Priority: low | Keywords:
Component: | Sensitive: 0
libdns++ | 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 |
-------------------------------------+-------------------------------------
Once an INBOUND message has been populated using the fromWire method,
subsequent calls to isc::dns::Message::fromWire result in unpredictable
behavior. Typically an exception is thrown but which one can vary from
one run to the next and it is not clear as the root cause. If fromWire is
not intended to be used more than once in the lifetime of a Message
instance this should at least be documented. Even better would be a a
safety check in fromWire to throw an exception if fromWire is called more
than once.
This behavior is simple to reproduce. Simple instantiate a Message and
call fromWire twice with a valid packet buffer. The first call will
succeed, the second will fail.
--
Ticket URL: <http://bind10.isc.org/ticket/3286>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list