[Osi-tickets] [COIN-OR Open Solver Interface] #43: OsiCpx::getBInvRow typo in row flipping

COIN-OR Open Solver Interface coin-trac at coin-or.org
Mon Nov 19 12:53:15 EST 2007


#43: OsiCpx::getBInvRow typo in row flipping
--------------------+-------------------------------------------------------
 Reporter:  stefan  |       Owner:  mjs
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:     
Component:  OsiCpx  |     Version:     
 Keywords:          |  
--------------------+-------------------------------------------------------
 Hi,

 in line 3352 of !OsiCpxSolverInterface.cpp (stable/0.97, rev. 1132) I get
 an invalid read reported by valgrind.
 The code snipet is
 {{{
 3351:   for(int j=0; j<ncol; j++) {
 3352:     z[j] = -z[j];
 3353:   }
 }}}
 I think the ncol need to be a nrow.

 Maybe similar in getBInvARow (line 3305)?

 Best,
 Stefan

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/43>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list