[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-28 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=462304

Nicolas Fella  changed:

   What|Removed |Added

 Resolution|--- |UPSTREAM
 Status|CONFIRMED   |RESOLVED

--- Comment #11 from Nicolas Fella  ---
Thanks for creating the poppler bug report. I will close this then

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-28 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #10 from cipricus  ---
(In reply to Oliver Sander from comment #7)
> Yes please.  You should be able to reproduce the bug with the `pdftoppm`
> tool (which is part of poppler).  That way, your bug report becomes
> independent from Okular.

I have posted as a popple bug here:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/1319

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-28 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #9 from cipricus  ---
(In reply to Oliver Sander from comment #7)
> Yes please.  You should be able to reproduce the bug with the `pdftoppm`
> tool (which is part of poppler).  That way, your bug report becomes
> independent from Okular.

Sorry, what is the exact package affected by the bug? Is it called "poppler"?
Or "poppler-utils"?

 Should the bug report be posted here? Or because it'd not a kde bug must be
posted under a different bug-reporting website?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-28 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #8 from cipricus  ---
(In reply to Oliver Sander from comment #7)
> Yes please.  You should be able to reproduce the bug with the `pdftoppm`
> tool (which is part of poppler).  That way, your bug report becomes
> independent from Okular.

I see, I have tested with Atril and Evince and they are no better than Okular,
clearly this is not Okular-specific.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-28 Thread Oliver Sander
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #7 from Oliver Sander  ---
Yes please.  You should be able to reproduce the bug with the `pdftoppm` tool
(which is part of poppler).  That way, your bug report becomes independent from
Okular.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #6 from cipricus  ---
(In reply to Oliver Sander from comment #5)
> Can you post a poppler bug for this, please?

Are you addressing me or the previous comment?  Should I post that bug?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread Oliver Sander
https://bugs.kde.org/show_bug.cgi?id=462304

Oliver Sander  changed:

   What|Removed |Added

 CC||oliver.san...@tu-dresden.de

--- Comment #5 from Oliver Sander  ---
Can you post a poppler bug for this, please?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=462304

Nicolas Fella  changed:

   What|Removed |Added

 CC||nicolas.fe...@gmx.de
 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #4 from Nicolas Fella  ---
When opening that file poppler prints "Bogus memory allocation size".
Presumably because the embedded image data is too large in some way.

The allocation seems to come from
https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/poppler/JBIG2Stream.cc#L1575

numInputSyms is 0, numNewSyms is 3092673499. 3092673499 is larger than 2^31 and
smaller than 2^32. It is stored as unsigned int, so that's fine, but when
passing that to gmallocn_checkoverflow it gets converted to int causing an
overflow. Once it reaches
https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/goo/gmem.h#L112
count is -1202293797 and the allocation fails

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #3 from cipricus  ---
If that page is printed as pdf in Firefox or (after selecting "print as image")
in Chromium/Chrome-based browsers, the resulting pdf is seen ok in Okular.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #2 from cipricus  ---
Comment on attachment 154078
  --> https://bugs.kde.org/attachment.cgi?id=154078
example of the pdf page Okular views as blank

Open that in Okular or qpdfview: only a footer is see. Open it in an internet
browser other than Falkon, in adobe Reader, Foxit reader, mupdf, Master pdf etc
and the page is seen in full.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 462304] Okular and other poppler related tools cannot handle some pdf pages

2022-11-27 Thread cipricus
https://bugs.kde.org/show_bug.cgi?id=462304

--- Comment #1 from cipricus  ---

> internet browser except Falkon, Adobe Reader, Foxit, Master PDF, WPS PDF,  
> LibreOffice Draw, ImageMagick, mupdf, PDF Studio Viewer

What I mean is: only Okular, qpdfview, Falkon and Evince seem affected; the
rest of the tools that I've tested (internet browsers - excepting Falkon -,
Adobe Reader, Foxit, Master PDF, WPS PDF,  LibreOffice Draw, ImageMagick,
mupdf, PDF Studio Viewer) are not affected.

-- 
You are receiving this mail because:
You are the assignee for the bug.