From 009d8dd9bfd11b1d28553fe6d5b4fae7a71f981f Mon Sep 17 00:00:00 2001 From: Debian Med Packaging Team Date: Tue, 23 Jun 2026 21:44:21 +0200 Subject: [PATCH] CVE-2025-9732b commit 3de96da6cd66b1af7224561c568bc3de50cd1398 Author: Joerg Riesmeier 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dcmimage/include/dcmtk/dcmimage/diybrpxt.h b/dcmimage/include/dcmtk/dcmimage/diybrpxt.h index c5415c14..fdaaafc2 100644 --- a/dcmimage/include/dcmtk/dcmimage/diybrpxt.h +++ b/dcmimage/include/dcmtk/dcmimage/diybrpxt.h @@ -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) -- 2.30.2