[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 48d344155507924861dfd09ace35145c95
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2022-09-13 06:34:13
|
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 48d344155507924861dfd09ace35145c9539e475 (commit)
from 4213e027d971b9c0e4a07af15a416556304d8c2d (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/48d344155507924861dfd09ace35145c9539e475/
commit 48d344155507924861dfd09ace35145c9539e475
Author: Mathieu Malaterre <mat...@gm...>
Date: Tue Sep 13 08:34:01 2022 +0200
Handle invalid case
diff --git a/Source/MediaStorageAndFileFormat/gdcmCleaner.cxx b/Source/MediaStorageAndFileFormat/gdcmCleaner.cxx
index 0a79346c8..f58691cdc 100644
--- a/Source/MediaStorageAndFileFormat/gdcmCleaner.cxx
+++ b/Source/MediaStorageAndFileFormat/gdcmCleaner.cxx
@@ -756,6 +756,11 @@ static bool CleanCSA(DataSet &ds, const DataElement &de) {
if (bv->GetLength() >= 10 && memcmp(bv->GetPointer(), pds_com, 10) == 0) {
return true;
}
+ static const char psd_ocm[] = "p<sd<>oc>m";
+ // byte-swap PET_REPLAY_PARAM case:
+ if (bv->GetLength() >= 10 && memcmp(bv->GetPointer(), psd_ocm, 10) == 0) {
+ return true;
+ }
static const char end[] = "END! ";
if (bv->GetLength() >= 10 &&
memcmp(bv->GetPointer() + bv->GetLength() - 10, end, 10) == 0) {
-----------------------------------------------------------------------
Summary of changes:
Source/MediaStorageAndFileFormat/gdcmCleaner.cxx | 5 +++++
1 file changed, 5 insertions(+)
hooks/post-receive
--
Grassroots DICOM
|