lebedev-aa / pdfviewer-win32

Automatically exported from code.google.com/p/pdfviewer-win32
0 stars 0 forks source link

PdfWrapper.LoadPdf() throws uncatchable exception on opening non-pdf file #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the attached TestViewer and click load which loads nonpdf.pdf. A 0-byte 
file (could also be any other bad-formed pdf-file). The program just crashes. 
If being debugged debugger reports unhandled exception 
'System.AccessViolationException' then program crashes.

What is the expected output? What do you see instead?
I expect PdfWrapper.LoadPdf() return 'false' indicating that something is wrong 
with the loaded file.

I propose fixing this problem using attached patch.

Original issue reported on code.google.com by notdiffi...@gmx.net on 23 Jan 2011 at 6:33

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by plazacom...@gmail.com on 24 Jan 2011 at 5:32

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r66.

Original comment by plazacom...@gmail.com on 2 Feb 2011 at 8:36