BIND 10 #836: operator[] on an empty vector

BIND 10 Development do-not-reply at isc.org
Fri Apr 8 13:55:46 UTC 2011


#836: operator[] on an empty vector
------------------------------------------+--------------------------------
                 Reporter:  fdupont       |                Owner:  jinmei
                     Type:  defect        |               Status:  assigned
                 Priority:  major         |            Milestone:
                Component:  Unclassified  |           Resolution:
                 Keywords:                |            Sensitive:  0
Estimated Number of Hours:  0.0           |  Add Hours to Ticket:  0
                Billable?:  1             |          Total Hours:  0
                Internal?:  0             |
------------------------------------------+--------------------------------

Comment (by fdupont):

 Found another case: isc::dns::Generic::Generic with rdata_len == 0:

     vector<uint8_t> data(rdata_len);
     buffer.readData(&data![0], rdata_len);

 First line builds an empty vector, second crashes...
 in src/lib/dns/rdata.cc line 113

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


More information about the bind10-tickets mailing list