From: Joerg Riesmeier Date: Wed, 10 Dec 2025 21:34:17 +0000 (+0100) Subject: Fixed issue with commit 7ad81d69b. X-Git-Tag: archive/raspbian/3.6.9-6+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c4046523c4cebf2eac160193a724a9c880298cc8;p=dcmtk.git Fixed issue with commit 7ad81d69b. Applied-Upstream: 3de96da6cd66b1af7224561c568bc3de50cd1398 Last-Update: 2025-08-18 Reviewed-By: Étienne Mollier Fixed an issue with recently committed changes that fix a problem with invalid YBR_FULL images Gbp-Pq: Name 0014-CVE-2025-9732.patch --- diff --git a/dcmimage/include/dcmtk/dcmimage/diybrpxt.h b/dcmimage/include/dcmtk/dcmimage/diybrpxt.h index c5415c14..3ab5aeb0 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 */ {