[PATCH] Fixed unchecked typecasts and fixed LUT handling.
authorMarco Eichelberg <dicom@offis.de>
Mon, 15 Apr 2024 10:19:33 +0000 (12:19 +0200)
committerÉtienne Mollier <emollier@debian.org>
Sat, 18 Jan 2025 15:30:29 +0000 (16:30 +0100)
commita013b955d812d632e7205c1e1ce535cbd8656ed1
tree5048ac88db9fa62e6b4c22168dee70b443fec54f
parent84bf55e1f56ff1bebc76e6e30466ec13def0d0e8
[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