[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 36db51e72c0036d930c0a00fa6d38c2e6e
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2021-07-09 12:30:23
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Grassroots DICOM".
The branch, release has been updated
via 36db51e72c0036d930c0a00fa6d38c2e6ef33bc8 (commit)
from 4404b770be337bd0d5d3c2289abfd34426433db2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/gdcm/gdcm/ci/36db51e72c0036d930c0a00fa6d38c2e6ef33bc8/
commit 36db51e72c0036d930c0a00fa6d38c2e6ef33bc8
Author: Mathieu Malaterre <mat...@gm...>
Date: Fri Jul 9 14:27:52 2021 +0200
Prevent a simple segfault
diff --git a/Applications/Cxx/gdcmdiff.cxx b/Applications/Cxx/gdcmdiff.cxx
index 649b98e22..94ead5cc9 100644
--- a/Applications/Cxx/gdcmdiff.cxx
+++ b/Applications/Cxx/gdcmdiff.cxx
@@ -232,8 +232,8 @@ static void difference_of_sequences(const gdcm::DataElement& sqde1,
{
gdcm::SmartPointer<gdcm::SequenceOfItems> sqi1 = sqde1.GetValueAsSQ();
gdcm::SmartPointer<gdcm::SequenceOfItems> sqi2 = sqde2.GetValueAsSQ();
- size_t n1 = sqi1->GetNumberOfItems();
- size_t n2 = sqi2->GetNumberOfItems();
+ size_t n1 = sqi1 ? sqi1->GetNumberOfItems() : 0;
+ size_t n2 = sqi2 ? sqi2->GetNumberOfItems() : 0;
size_t n = (n1 < n2) ? n1 : n2 ;
std::stringstream sq_note;
if (n1 != n2)
-----------------------------------------------------------------------
Summary of changes:
Applications/Cxx/gdcmdiff.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Grassroots DICOM
|