Fixed issue with commit 7ad81d69b.
authorJoerg Riesmeier <dicom@jriesmeier.com>
Wed, 10 Dec 2025 21:34:17 +0000 (22:34 +0100)
committerÉtienne Mollier <emollier@debian.org>
Wed, 10 Dec 2025 21:34:17 +0000 (22:34 +0100)
Applied-Upstream: 3de96da6cd66b1af7224561c568bc3de50cd1398
Last-Update: 2025-08-18
Reviewed-By: Étienne Mollier <emollier@debian.org>
Fixed an issue with recently committed changes that fix a problem with
invalid YBR_FULL images

Gbp-Pq: Name 0014-CVE-2025-9732.patch

dcmimage/include/dcmtk/dcmimage/diybrpxt.h

index c5415c149729ef1bd31e3cf02746d386e29c5c7a..3ab5aeb0b0051afb81e77531bdfac50c962cbbc7 100644 (file)
@@ -92,7 +92,7 @@ class DiYBRPixelTemplate
             // attribute), but not more than the size of the intermediate buffer
             const unsigned long count = (this->InputCount < this->Count) ? this->InputCount : this->Count;
             // make sure that there is sufficient input data (for planar pixel data)
-            if (!this->PlanarConfiguration || (count >= planeSize * 3 /* number of planes */))
+            if (!this->PlanarConfiguration || (count >= planeSize))
             {
                 if (rgb)    /* convert to RGB model */
                 {