[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. ccf7f27bdf586d9e3229715e9d81f25b31
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2019-07-15 08:48:34
|
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 ccf7f27bdf586d9e3229715e9d81f25b317b9df5 (commit)
from f2693d1d48f8dca0e4711bbe7517992a92773467 (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/ccf7f27bdf586d9e3229715e9d81f25b317b9df5/
commit ccf7f27bdf586d9e3229715e9d81f25b317b9df5
Author: Mathieu Malaterre <mat...@gm...>
Date: Mon Jul 15 10:42:48 2019 +0200
Handle VS2019 where behavior of &Internal[0] is undefined when empty
diff --git a/Source/DataStructureAndEncodingDefinition/gdcmByteValue.cxx b/Source/DataStructureAndEncodingDefinition/gdcmByteValue.cxx
index 58f611245..d1ed063c9 100644
--- a/Source/DataStructureAndEncodingDefinition/gdcmByteValue.cxx
+++ b/Source/DataStructureAndEncodingDefinition/gdcmByteValue.cxx
@@ -95,7 +95,7 @@ namespace gdcm_ns
// so we need an inequality
if( length <= Internal.size() )
{
- memcpy(buffer, &Internal[0], length);
+ if(!Internal.empty()) memcpy(buffer, &Internal[0], length);
return true;
}
gdcmDebugMacro( "Could not handle length= " << length );
-----------------------------------------------------------------------
Summary of changes:
Source/DataStructureAndEncodingDefinition/gdcmByteValue.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Grassroots DICOM
|