Status: Unconfirmed
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1614 by papa2...@
gmail.com: CallocOrDie crash my application
https://bugs.chromium.org/p/pdfium/issues/detail?id=1614What steps will reproduce the problem?
1. Load a PDF that requires a lot of memory
2. CPFD_Page:ParseContent() & PrepareContent() call CallocOrDie()
3. FX_OutOfMemoryTerminate call abort();
this is for a 32bits version of a DLL that I build for a Delphi application.
the 64bits version do not have this problem but take a lot of memory, too much for a 32bits version.
What is the expected output? What do you see instead?
-> I'd like to catch this situation and display a memory allocation error
What version of the product are you using? On what operating system?
code from 09/11/2020 22:50:06
Please provide any additional information below.
I don't know C++ very well, I've tried to replace the abort() call in fx_memory.cpp (line 72) by a throw but I have this error: cannot use 'throw' with exceptions disabled
is there any way to manage this ? I've seen the signal() function but how can I exit from the code with decent cleanup ?
my entry point is the FPDF_LoadPage() function.
Thanks
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings