Very serious memory leak

16 views
Skip to first unread message

吴吴

unread,
Sep 3, 2025, 2:07:35 AMSep 3
to pdfium
如果页面上有注解对象,则使用 FPDF_RenderPageBitmapWithMatrix API 绘制页面时会发生内存泄漏。这种内存泄漏发生在CPDF_AnnotList类构造函数中,并且在销毁过程中内存没有完全释放。b652bb7f-7974-452b-a088-e45d63713ba2.png

吴吴

unread,
Sep 3, 2025, 2:07:53 AMSep 3
to pdfium

If there are annotation objects on the page, a memory leak will occur when drawing the page using the FPDF_RenderPageBitmapWithMatrix API. This memory leak occurs in the CPDF_AnnotList class constructor, and the memory is not completely released during destruction.

Lei Zhang

unread,
Sep 3, 2025, 7:06:17 PMSep 3
to 吴吴, pdfium
Thanks for reporting the issue. I believe this is https://crbug.com/42270200.

On Tue, Sep 2, 2025 at 11:07 PM 吴吴 <a1870...@gmail.com> wrote:
如果页面上有注解对象,则使用 FPDF_RenderPageBitmapWithMatrix API 绘制页面时会发生内存泄漏。这种内存泄漏发生在CPDF_AnnotList类构造函数中,并且在销毁过程中内存没有完全释放。b652bb7f-7974-452b-a088-e45d63713ba2.png

--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pdfium/30ab6880-fc39-4235-87fb-c991e136c6f1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages