CVE-2025-9732b
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Thu, 11 Jun 2026 18:54:58 +0000 (20:54 +0200)
committerÉtienne Mollier <emollier@debian.org>
Thu, 11 Jun 2026 18:54:58 +0000 (20:54 +0200)
commit 3de96da6cd66b1af7224561c568bc3de50cd1398
Author: Joerg Riesmeier <dicom@jriesmeier.com>
Date:   Mon Aug 18 17:58:56 2025 +0200

    Fixed issue with commit 7ad81d69b.

    Fixed an issue with recently committed changes that fix a problem with
    invalid YBR_FULL images

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

dcmimage/include/dcmtk/dcmimage/diybrpxt.h

index c5415c149729ef1bd31e3cf02746d386e29c5c7a..fdaaafc2d8444aaa20d9acc40d285a4cc7b193ef 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 */
                 {
@@ -231,7 +231,7 @@ class DiYBRPixelTemplate
                     const T1 *p = pixel;
                     if (this->PlanarConfiguration)
                     {
-    /*
+/*
                         T2 *q;
                         // number of pixels to be skipped (only applicable if 'PixelData' contains more
                         // pixels than expected)
@@ -244,7 +244,7 @@ class DiYBRPixelTemplate
                             // skip to beginning of next plane
                             p += skip;
                         }
-    */
+*/
                         unsigned long l;
                         unsigned long i = 0;
                         while (i < count)