[PATCH] Fixed unchecked typecasts and fixed LUT handling.
authorMarco Eichelberg <dicom@offis.de>
Mon, 15 Apr 2024 10:19:33 +0000 (12:19 +0200)
committerMathieu Malaterre <malat@debian.org>
Mon, 8 Jul 2024 11:31:04 +0000 (13:31 +0200)
commit1032ffaa7d0adf711c4871ba60378737699585df
tree18028f357258485530ce69534803ef117648175e
parent89a3995330d5b7e4ecefe7d59530ab15b7d5145c
[PATCH] Fixed unchecked typecasts and fixed LUT handling.

This commit adds further fixes for unchecked typecasts of DcmItem::search()
results (see description of previous commit). Furthermore, this commit
specifically addresses the handling of look-up tables (LUTs) in module
dcmpstat, where attribute (0028,3006) LUTData may use either US or OW
value representation, and (0028,3002) LUTDescriptor may be either US or SS.
The code should now properly handle all permitted value representations.
LUTData is now always written as OW in order to avoid the 64k size limit
for US in explicit VR encoding.

Thanks to Martin Zeiser from the Cisco Talos team
<vulndiscovery@external.cisco.com> for the bug report (TALOS-2024-1957).

Together with the previous commit, this closes DCMTK issue #1120.

Gbp-Pq: Name 0002-Fixed-unchecked-typecasts-and-fixed-LUT-handling.patch
dcmpstat/libsrc/dcmpstat.cc
dcmpstat/libsrc/dvpspl.cc
dcmpstat/libsrc/dvpssv.cc
dcmpstat/libsrc/dvpssvl.cc
dcmpstat/libsrc/dvpstat.cc
dcmpstat/libsrc/dvpsvl.cc