File CVE-2025-50952.patch of Package texmaker
---
3rdparty/pdfium/third_party/libopenjpeg20/dwt.c | 3 +++
1 file changed, 3 insertions(+)
Index: texmaker-6.0.1/3rdparty/pdfium/third_party/libopenjpeg20/dwt.c
===================================================================
--- texmaker-6.0.1.orig/3rdparty/pdfium/third_party/libopenjpeg20/dwt.c
+++ texmaker-6.0.1/3rdparty/pdfium/third_party/libopenjpeg20/dwt.c
@@ -574,6 +574,9 @@ static OPJ_BOOL opj_dwt_decode_tile(cons
OPJ_UINT32 rh = (OPJ_UINT32)(tr->y1 - tr->y0); /* height of the resolution level computed */
OPJ_UINT32 w = (OPJ_UINT32)(tilec->x1 - tilec->x0);
+ if (numres == 1U || w == 0) {
+ return OPJ_TRUE;
+ }
h.mem_count = opj_dwt_max_resolution(tr, numres);
if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof(OPJ_INT32) < (OPJ_UINT32)h.mem_count) {