[Boost-bugs] [Boost C++ Libraries] #11761: boost/graph/kamada_kawai_spring_layout.hpp: many indexes out of range ?

Subject: [Boost-bugs] [Boost C++ Libraries] #11761: boost/graph/kamada_kawai_spring_layout.hpp: many indexes out of range ?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-27 16:09:09


#11761: boost/graph/kamada_kawai_spring_layout.hpp: many indexes out of range ?
-----------------------+------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 [boost_1_59_0/boost/graph/kamada_kawai_spring_layout.hpp:110]: (error)
 Array 'mat[2][2]' index mat[1][2] out of bounds.

       static Vec solve(double mat[2][2], Vec rhs) {
         double denom = mat[0][0] * (mat[1][1] * mat[2][2] - mat[2][1] *
 mat[1][2])
                      - mat[1][0] * (mat[0][1] * mat[2][2] - mat[2][1] *
 mat[0][2])
                      + mat[2][0] * (mat[0][1] * mat[1][2] - mat[1][1] *
 mat[0][2]);

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11761>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC