BIND 10 #889: new bugs from MSVC

BIND 10 Development do-not-reply at isc.org
Mon May 2 15:59:29 UTC 2011


#889: new bugs from MSVC
-------------------------------------+-------------------------------------
                   Reporter:         |                  Type:  defect
  fdupont                            |              Priority:  critical
                     Status:  new    |             Component:  Unclassified
                  Milestone:  New    |             Sensitive:  0
  Tasks                              |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:  High   |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 src/lib/cc/data.cc raises a bug with MSVC:
  - in removeIdentical() (the first one ~ line 851) I get a
   "map/set iterator not incrementable". Reading the code
   an iterator  "it"is built from std::map and ++ is called on it even
   when it can point to end after the remove if it points to the last
   element...

   BTW the standard way is to have remove() returning the iterator so
   you can write if () { it = remove(); } else ++it;

 src/lib/config/tests (libcfgclient) raises another bug in data.h:
  - !ListElement remove() (~ line 461) can be called with a bad argument,
   giving "vector erase iterator outside range". This is triggered by
   listRemove() (line ~ 67) in fake_session.cc. BTW, I don't understand
   this function...

 I fixed the two bugs to get tests to work without errors. The commit was
 pushed
 on trac826 but please find better fixes!

-- 
Ticket URL: <http://bind10.isc.org/ticket/889>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list