Bug 24169

Summary: Bogus memory allocation size in poppler 0.12.0
Product: poppler Reporter: Max Vegni <m.vegni>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Configure Log
Configure stdout
Poppler-fonts output

Description Max Vegni 2009-09-26 08:12:30 UTC
Poppler 0.12.0 gives a log list of errors reading MySQL-5.0 reference manual in pdf.

output snippet:

Error: Found a bad table definition on true type definition, trying to continue...
Error: Found a bad table definition on true type definition, trying to continue...
Error: Found a bad table definition on true type definition, trying to continue...
Bogus memory allocation size

So it renders incorrectly many of the fonts.

Tried both okular and poppler_qt4viewer in demos dir.
Comment 1 Albert Astals Cid 2009-09-26 08:35:15 UTC
Please give a link to the file.
Comment 2 Albert Astals Cid 2009-09-26 09:55:16 UTC
Tried http://downloads.mysql.com/docs/refman-5.0-en.pdf 

Works like a charm

So please, we need a link
Comment 3 Max Vegni 2009-09-26 13:54:05 UTC
I've posted the pdf at this link

http://www.it-systems.it/mysql-refman-5.0-en.a4-20090520.pdf

besides, the compiler user is gcc 4.4.1, let me know if you need
some extra info.

Comment 4 Albert Astals Cid 2009-09-27 08:04:07 UTC
Still works for me, i'm on gcc 4.4.1 too

Did you use any specific configure or complation flags?

Can you post the summary of the configure step?

Can you post the result of running qt4/tests/poppler-fonts over the file?
Comment 5 Max Vegni 2009-09-28 14:39:13 UTC
Created attachment 29928 [details]
Configure Log
Comment 6 Max Vegni 2009-09-28 14:39:40 UTC
Created attachment 29929 [details]
Configure stdout
Comment 7 Max Vegni 2009-09-28 14:40:14 UTC
Created attachment 29930 [details]
Poppler-fonts output
Comment 8 Max Vegni 2009-09-28 14:42:31 UTC
Maybe I start to figure out what happens: I think it's related to some fonts I borrowed from my Macintosh. I heard about some difference in encoding between ttf made from different foundries (M$, Apple, etc.). 
Comment 9 Albert Astals Cid 2009-09-28 14:46:13 UTC
Yes please, try removing those fonts from your system and see what happens.
Comment 10 Max Vegni 2009-09-28 14:59:36 UTC
Fonts removed. It works flawlessly. The Apple fonts were to blame.
Comment 11 Albert Astals Cid 2009-09-28 15:13:23 UTC
So the question now is, do we close the bug or you send me the fonts so i can try to see what's the problem?
Comment 12 Albert Astals Cid 2011-06-19 15:25:42 UTC
No answer -> not a bug

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.