[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 8f521bc1519ba7a85cc0d11ad818d4d3f9
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2020-10-21 08:24:44
|
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 8f521bc1519ba7a85cc0d11ad818d4d3f9bf1aff (commit)
from bbec045ce41d6759a86c6c3933f4407fdd52f7d4 (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/8f521bc1519ba7a85cc0d11ad818d4d3f9bf1aff/
commit 8f521bc1519ba7a85cc0d11ad818d4d3f9bf1aff
Author: Mathieu Malaterre <mat...@gm...>
Date: Wed Oct 21 10:20:07 2020 +0200
Fix bug #511: oversized compressed JPEG2000 encoding is not handled
See also: cbd87befe8245494c757bd47f0aacd2e416fa239
diff --git a/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx b/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
index dfb550bc5..d7f17f500 100644
--- a/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
@@ -1269,7 +1269,7 @@ bool JPEG2000Codec::CodeFrameIntoBuffer(char * outdata, size_t outlen, size_t &
myfile mysrc;
myfile *fsrc = &mysrc;
- char *buffer_j2k = new char[inputlength]; // overallocated
+ char *buffer_j2k = new char[inputlength * 2]; // overallocated for weird case
fsrc->mem = fsrc->cur = buffer_j2k;
fsrc->len = 0; //inputlength;
-----------------------------------------------------------------------
Summary of changes:
Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Grassroots DICOM
|