--- OS-2.10.2/OS/src/OSCommonInterfaces/OSMatrix.cpp.orig 2019-04-10 16:12:13.198645429 -0600
+++ OS-2.10.2/OS/src/OSCommonInterfaces/OSMatrix.cpp 2019-06-24 14:21:05.271203523 -0600
@@ -1073,7 +1073,7 @@ GeneralSparseMatrix* MatrixType::getMatr
base_c0 = ((BaseMatrix*)m_mChildren[0])->baseMatrixStartCol;
base_r0 = ((BaseMatrix*)m_mChildren[0])->baseMatrixStartRow;
base_cN = ((BaseMatrix*)m_mChildren[0])->baseMatrixEndCol;
- base_cN = ((BaseMatrix*)m_mChildren[0])->baseMatrixEndRow;
+ base_rN = ((BaseMatrix*)m_mChildren[0])->baseMatrixEndRow;
if (base_cN < 0)
base_cN = baseMtxPtr->numberOfColumns - 1;
if (base_rN < 0)
--- OS-2.10.2/OS/src/OSSolverInterfaces/OSCsdpSolver.cpp.orig 2017-12-08 06:52:50.000000000 -0700
+++ OS-2.10.2/OS/src/OSSolverInterfaces/OSCsdpSolver.cpp 2019-06-24 14:22:41.242506951 -0600
@@ -96,7 +96,7 @@ void CsdpSolver::buildSolverInstance() t
int* blockSize = NULL;
int* mtxRef = NULL;
bool* isdiag = NULL;
- ExpandedMatrixBlocks** mtxBlocks;
+ ExpandedMatrixBlocks** mtxBlocks = NULL;
try
{
if(osil.length() == 0 && osinstance == NULL) throw ErrorClass("there is no instance");
@@ -499,6 +499,7 @@ void CsdpSolver::buildSolverInstance() t
if (blockSize != NULL) delete [] blockSize;
if (mtxRef != NULL) delete [] mtxRef;
if (isdiag != NULL) delete [] isdiag;
+ if (mtxBlocks != NULL)
{
for (int i=0; i <= ncon; i++)
{
--- OS-2.10.2/OS/src/OSUtils/OSdtoa.cpp.orig 2017-12-08 06:52:50.000000000 -0700
+++ OS-2.10.2/OS/src/OSUtils/OSdtoa.cpp 2019-06-24 14:18:59.092434099 -0600
@@ -3979,6 +3979,7 @@ os_dtoa
k0 = k;
ilim0 = ilim;
ieps = 2; /* conservative */
+ j1 = 0;
if (k > 0) {
ds = tens[k&0xf];
j = k >> 4;