From 01c7bc14da7ee977fcbf7f7db97de0c78924504d Mon Sep 17 00:00:00 2001 From: re2zero Date: Wed, 15 Oct 2025 13:07:34 +0800 Subject: [PATCH] fix: Fix url link access Increase URI buffer size for longer URLs . Log: Fix url link access. Bug: https://pms.uniontech.com/bug-view-335729.html --- debian/changelog | 6 ++++++ src/dpdfpage.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b1aae59..e69dd62 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-pdfium (1.5.4) unstable; urgency=medium + + * fix: Fix url link access + + -- re2zero Wed, 15 Oct 2025 13:23:54 +0800 + deepin-pdfium (1.5.3) unstable; urgency=medium * Improves the way the application handles PDF files located on remote filesystems like SMB: diff --git a/src/dpdfpage.cpp b/src/dpdfpage.cpp index aa1394d..682dfe4 100755 --- a/src/dpdfpage.cpp +++ b/src/dpdfpage.cpp @@ -347,8 +347,8 @@ bool DPdfPagePrivate::loadAnnots() //获取类型 if (PDFACTION_URI == type) { - char uri[256] = {0}; - unsigned long lenth = FPDFAction_GetURIPath(m_doc, action, uri, 256); + char uri[2048] = {0}; + unsigned long lenth = FPDFAction_GetURIPath(m_doc, action, uri, 2048); if (0 != lenth) { dAnnot->setUrl(uri); }