Dtronix / PDFiumCore

.NET Standard P/Invoke bindings for PDFium.
Apache License 2.0
146 stars 23 forks source link

A Crash Error When Init #22

Open IDXGI opened 8 months ago

IDXGI commented 8 months ago

The structure in PDFiumCore FPDF_LIBRARYCONFIG has a internal struature __Internal, the field m_pUserFontPaths is not set to Zero, and also not a Property to exposure to the user.

The non-zero field is passed to PDFium and cause a crush. The Crash Position is:

auto* user_paths = CFX_GEModule::Get()->GetUserFontPaths(); if (user_paths) { auto font_info = std::make_unique(); for (; user_paths; user_paths++) ///////////// Crash /////////////// font_info->AddPath(*user_paths); return font_info; }

If Possible, I hope can fix this error, sincerely thanks. 😀