View Issue Details

IDProjectCategoryView StatusLast Update
0016365ScribusGeneralpublic2020-12-01 10:31
Reporterpeter.hanzel Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.5.6 
Target VersionFixed in Version1.5.7.svn 
Summary0016365: Opening attached PDF in Scribus leads to crash [due to crippled javascript inside)
DescriptionWhen 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 ReproduceStart Scribus
Open existing document (attached PDF)
Crash.
TagsPDF
PatchYes

Activities

peter.hanzel

2020-11-28 19:48

reporter  

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;
patch_importpdf.diff (512 bytes)
UlomkyZeny.pdf (517,320 bytes)

jghali

2020-12-01 10:31

administrator   ~0048514

Thanks for the report. The right fix was however a level above in the stack.

Issue History

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 View Revisions
2020-12-01 05:26 jghali Steps to Reproduce Updated View Revisions
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