Skip to content

Commit

Permalink
ci: address sanitizer issues
Browse files Browse the repository at this point in the history
(cherry picked from commit 584f966)
  • Loading branch information
vicentebolea committed Jan 7, 2025
1 parent 6b94185 commit 74845ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/adios2/helper/adiosType.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CoreDims
class DimsArray : public CoreDims
{
private:
size_t Dimensions[MAX_DIMS];
size_t Dimensions[MAX_DIMS]{0};

public:
// constructor with no init of values
Expand Down
5 changes: 3 additions & 2 deletions source/adios2/toolkit/format/bp/bp3/BP3Serializer.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ void BP3Serializer::PutSpanMetadata(const core::Variable<T> &variable,

const size_t minPosition = span.m_MinMaxMetadataPositions.first;
const size_t maxPosition = span.m_MinMaxMetadataPositions.second;
std::copy(&min, &min + 1, reinterpret_cast<T *>(buffer.data() + minPosition));
std::copy(&max, &max + 1, reinterpret_cast<T *>(buffer.data() + maxPosition));

std::memcpy(buffer.data() + minPosition, &min, sizeof(T));
std::memcpy(buffer.data() + maxPosition, &max, sizeof(T));
}
}

Expand Down

0 comments on commit 74845ef

Please sign in to comment.