Origin: upstream, https://github.com/strukturag/libde265/commit/
d1a2c3b4b751d21f44e8e82220fe9766c9d116ff
Bug: https://github.com/strukturag/libde265/security/advisories/GHSA-wg9q-ppqw-6q38
Applied-Upstream: 1.0.19
In the WPP slice decoder ctbAddrRS = ctbRow * ctbsWidth can exceed the
allocated vector size, causing out-of-bounds reads.
Gbp-Pq: Name CVE-2026-45383.patch
int ctbAddrRS = shdr->slice_segment_address;
int ctbRow = ctbAddrRS / ctbsWidth;
+ if (ctbRow + nRows > img->get_sps().PicHeightInCtbsY) {
+ return DE265_WARNING_SLICEHEADER_INVALID;
+ }
+
for (int entryPt=0;entryPt<nRows;entryPt++) {
// entry points other than the first start at CTB rows
if (entryPt>0) {