Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Sigil crashes opening epub with malformed xml #1108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open an epub which has content.opf with malformed xml
2. Epub crashes

What is the expected output? What do you see instead?
At least show an error message, but don't crash.

What version of the product are you using? On what operating system?
Sigil 0.4.2, OS X 10.7.2

The crash information from Sigil is:
Error info: Cannot load file /Users/xrm0/Desktop/malformed.epub: 
/Users/john/Tmp/s/sc/src/Sigil/Importers/ImportOEBPS.cpp(351): Throw in 
function QString ImportOEBPS::GetNCXId()
Dynamic exception type: boost::exception_detail::clone_impl<ErrorParsingOpf>
std::exception::what: std::exception
[line_number*] = 9
[error_string*] = Opening and ending tag mismatch.
[column_number*] = 13

Sigil version: 0.4.2
Runtime Qt: 4.7.3
Compiled Qt: 4.7.3
Platform: Mac SysInfo ID 9

The attached epub has the <dc:title> not closed on purpose to reproduce the 
error.

Original issue reported on code.google.com by lparr...@gmail.com on 17 Nov 2011 at 3:20

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by john@nachtimwald.com on 30 Apr 2012 at 12:14