View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016365 | Scribus | General | public | 2020-11-28 19:48 | 2021-03-23 06:25 |
Reporter | peter.hanzel | Assigned To | jghali | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.5.6 | ||||
Fixed in Version | 1.5.7.svn | ||||
Summary | 0016365: Opening attached PDF in Scribus leads to crash [due to crippled javascript inside) | ||||
Description | When opening attached PDF as main Scribus file the app crashes. PDF was created in FrameMaker and contains Javascript which is somehow crippled and look like empty in Acrobat. Attached patch fixed situation for me. | ||||
Steps To Reproduce | Start Scribus Open existing document (attached PDF) Crash. | ||||
Tags | |||||
Patch | Yes | ||||
|
patch_importpdf.diff (512 bytes)
diff --git a/scribus/plugins/import/pdf/importpdf.cpp b/scribus/plugi ns/import/pdf/importpdf.cpp index d2aba0633..9b8bfd6f2 100644 --- a/scribus/plugins/import/pdf/importpdf.cpp +++ b/scribus/plugins/import/pdf/importpdf.cpp @@ -1016,6 +1016,8 @@ QString PdfPlug::UnicodeParsedString(const std: :string& s1) { if (s1.length() == 0) return QString(); + if (s1.at(0)==0) + return QString(); GBool isUnicode; size_t i; Unicode u; |
|
Thanks for the report. The right fix was however a level above in the stack. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-28 19:48 | peter.hanzel | New Issue | |
2020-11-28 19:48 | peter.hanzel | Tag Attached: PDF | |
2020-11-28 19:48 | peter.hanzel | File Added: patch_importpdf.diff | |
2020-11-28 19:48 | peter.hanzel | File Added: UlomkyZeny.pdf | |
2020-12-01 05:25 | jghali | Project | Contributor Builds => Scribus |
2020-12-01 05:26 | jghali | Description Updated | |
2020-12-01 05:26 | jghali | Steps to Reproduce Updated | |
2020-12-01 10:31 | jghali | Assigned To | => jghali |
2020-12-01 10:31 | jghali | Status | new => resolved |
2020-12-01 10:31 | jghali | Resolution | open => fixed |
2020-12-01 10:31 | jghali | Fixed in Version | => 1.5.7.svn |
2020-12-01 10:31 | jghali | Note Added: 0048514 | |
2020-12-01 10:31 | jghali | Product Version | => 1.5.6 |
2021-03-23 06:25 | cbradney | Status | resolved => closed |