BIND 10 #3004: Cppcheck 1.60.1 and out of bounds access

BIND 10 Development do-not-reply at isc.org
Mon Jun 17 11:31:33 UTC 2013


#3004: Cppcheck 1.60.1 and out of bounds access
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  vorner                             |                Status:  new
                       Type:         |             Milestone:  New Tasks
  defect                             |              Keywords:
                   Priority:         |             Sensitive:  0
  medium                             |           Sub-Project:  DHCP
                  Component:         |  Estimated Difficulty:  0
  Unclassified                       |           Total Hours:  0
               CVSS Scoring:         |
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 The cppcheck 1.60.1 produces several warnings in form:

 {{{#!c++
 src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc:748: check_fail: Array
 'leases[2]' accessed at index 2, which is out of bounds.
 (error,arrayIndexOutOfBounds)
 }}}

 They are all from dhcp code and look like serious programmer error (though
 they are in the tests).

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


More information about the bind10-tickets mailing list