diff --git a/ChangeLog.txt b/ChangeLog.txt index 17d6b5fffe..758f9b1f53 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -87,6 +87,9 @@ ViSP 3.x.x (Version in development) . [#1341] SVD computation fails with Lapack when m < n . [#1370] encountered compilation errors while building the ViSP library . [#1424] Unable to detect Yarp 3.9.0 + . [#1485] Build issue around nlohmann_json usage with VTK 9.2.0 or more recent version used as an embedded + 3rdparty by PCL + . [#1494] Memory management issue in vpArray2D::resize() ---------------------------------------------- ViSP 3.6.0 (released September 22, 2023) - Contributors: diff --git a/example/math/quadprog_eq.cpp b/example/math/quadprog_eq.cpp index 85c3a00717..6c3cf66c51 100644 --- a/example/math/quadprog_eq.cpp +++ b/example/math/quadprog_eq.cpp @@ -1,7 +1,6 @@ -/**************************************************************************** - * +/* * ViSP, open source Visual Servoing Platform software. - * Copyright (C) 2005 - 2023 by Inria. All rights reserved. + * Copyright (C) 2005 - 2024 by Inria. All rights reserved. * * This software is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,8 +29,8 @@ * * Description: * Example of sequential calls to QP solver with constant equality constraint - * -*****************************************************************************/ + */ + /*! \file quadprog_eq.cpp diff --git a/modules/core/include/visp3/core/vpArray2D.h b/modules/core/include/visp3/core/vpArray2D.h index 560e1effe2..dc23719747 100644 --- a/modules/core/include/visp3/core/vpArray2D.h +++ b/modules/core/include/visp3/core/vpArray2D.h @@ -426,7 +426,10 @@ template class vpArray2D // Recopy of this->data array values or nullify if (flagNullify) { - memset(this->data, 0, static_cast(this->dsize) * sizeof(Type)); + // If dsize = 0 nothing to do + if ((nullptr != this->data) && (0 != this->dsize)) { + memset(this->data, 0, static_cast(this->dsize) * sizeof(Type)); + } } else if (recopyNeeded && (this->rowPtrs != nullptr)) { // Recopy... diff --git a/modules/core/src/math/transformation/vpHomogeneousMatrix.cpp b/modules/core/src/math/transformation/vpHomogeneousMatrix.cpp index 0d364cd861..e0d071229a 100644 --- a/modules/core/src/math/transformation/vpHomogeneousMatrix.cpp +++ b/modules/core/src/math/transformation/vpHomogeneousMatrix.cpp @@ -29,8 +29,7 @@ * * Description: * Homogeneous matrix. - * -*****************************************************************************/ + */ /*! \file vpHomogeneousMatrix.cpp